Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

typo fixes

  • Loading branch information...
commit 08a0960c37d9a43b125cbd402e4e7ac57a2202d1 1 parent ebf825c
Steve Shreeve shreeve authored
2  scripts/release.sh
View
@@ -60,7 +60,7 @@ BUILD=\"$4\"
DEFINES += MAJOR_VERSION=\$\$MAJOR_VERSION MINOR_VERSION=\$\$MINOR_VERSION PATCH_VERSION=\$\$PATCH_VERSION BUILD=\$\$BUILD" > version.pri
HEAD="$(git log --pretty=oneline -n 1 | sed -e 's/ .*//')"
-git commit -m "TEMPORERY DO NOT COMMIT $v" version.pri
+git commit -m "TEMPORARY DO NOT COMMIT $v" version.pri
rm -rf bin
mkdir bin
8 src/image/imagearguments.cc
View
@@ -36,10 +36,10 @@ ImageCommandLineParser::ImageCommandLineParser(wkhtmltopdf::settings::ImageGloba
// addarg("scale-w",0,"Set width for resizing", new IntSetter(s.scale.width,"int"));
// addarg("scale-h",0,"Set height for resizing", new IntSetter(s.scale.height,"int"));
- addarg("crop-x",0,"Set x coordinate for croping", new IntSetter(s.crop.left,"int"));
- addarg("crop-y",0,"Set y coordinate for croping", new IntSetter(s.crop.top,"int"));
- addarg("crop-w",0,"Set width for croping", new IntSetter(s.crop.width,"int"));
- addarg("crop-h",0,"Set height for croping", new IntSetter(s.crop.height,"int"));
+ addarg("crop-x",0,"Set x coordinate for cropping", new IntSetter(s.crop.left,"int"));
+ addarg("crop-y",0,"Set y coordinate for cropping", new IntSetter(s.crop.top,"int"));
+ addarg("crop-w",0,"Set width for cropping", new IntSetter(s.crop.width,"int"));
+ addarg("crop-h",0,"Set height for cropping", new IntSetter(s.crop.height,"int"));
addarg("format",'f',"Output file format", new QStrSetter(s.fmt, "format") );
addarg("quality",0,"Output image quality (between 0 and 100)", new IntSetter(s.quality, "int") );
2  src/image/imagecommandlineparser.cc
View
@@ -91,7 +91,7 @@ void ImageCommandLineParser::readme(FILE * fd, bool html) const {
// foreach (ArgHandler * h, d->longToHandler)
// h->useDefault(*d);
-// //Load configuration from enviornment
+// //Load configuration from environment
// char * val;
// const char * vars[] = {"proxy","all_proxy","http_proxy", NULL};
// for (int i=0; vars[i]; ++i) {
2  src/image/imagecommandlineparser.hh
View
@@ -24,7 +24,7 @@
#include <cstdio>
#include <wkhtmltox/imagesettings.hh>
-/*! \brief The class is responcible for parsing command line information
+/*! \brief The class is responsible for parsing command line information
*/
class ImageCommandLineParser: public CommandLineParserBase {
public:
2  src/lib/converter.cc
View
@@ -47,7 +47,7 @@ void ConverterPrivate::updateWebSettings(QWebSettings * ws, const settings::Web
ws->setAttribute(QWebSettings::JavascriptCanAccessClipboard, false);
ws->setFontSize(QWebSettings::MinimumFontSize, s.minimumFontSize);
#if QT_VERSION >= 0x040500
- //Newer vertions of QT have even more settings to change
+ //Newer versions of QT have even more settings to change
ws->setAttribute(QWebSettings::PrintElementBackgrounds, s.background);
ws->setAttribute(QWebSettings::AutoLoadImages, s.loadImages);
ws->setAttribute(QWebSettings::PluginsEnabled, s.enablePlugins);
2  src/lib/doc.cc
View
@@ -75,7 +75,7 @@
*
* \section RESTH The rest of the headers.
*
- * The rest of the headers directly exposes the C++ QT dependant class
+ * The rest of the headers directly exposes the C++ QT dependent class
* used internally by wkhtmltopdf and wkhtmltoimage. They are not
* fairly well documented and are not guaranteed to remain stable.
* unless you know what you are doing you should not use these bindings.
2  src/lib/image.h
View
@@ -52,7 +52,7 @@ CAPI(void) wkhtmltoimage_set_phase_changed_callback(wkhtmltoimage_converter * co
CAPI(void) wkhtmltoimage_set_progress_changed_callback(wkhtmltoimage_converter * converter, wkhtmltoimage_int_callback cb);
CAPI(void) wkhtmltoimage_set_finished_callback(wkhtmltoimage_converter * converter, wkhtmltoimage_int_callback cb);
CAPI(int) wkhtmltoimage_convert(wkhtmltoimage_converter * converter);
-/* CAPI(void) wkhtmltoimage_begin_convertion(wkhtmltoimage_converter * converter); */
+/* CAPI(void) wkhtmltoimage_begin_conversion(wkhtmltoimage_converter * converter); */
/* CAPI(void) wkhtmltoimage_cancel(wkhtmltoimage_converter * converter); */
CAPI(int) wkhtmltoimage_current_phase(wkhtmltoimage_converter * converter);
8 src/lib/image_c_bindings.cc
View
@@ -25,14 +25,14 @@
* - \b crop.left left/x coordinate of the window to capture in pixels. E.g. "200"
* - \b crop.top top/y coordinate of the window to capture in pixels. E.g. "200"
* - \b crop.width Width of the window to capture in pixels. E.g. "200"
- * - \b crop.height Heigt of the window to capture in pixels. E.g. "200"
+ * - \b crop.height Height of the window to capture in pixels. E.g. "200"
* - \b load.cookieJar Path of file used to load and store cookies.
* - \b load.* Page specific settings related to loading content, see \ref pageLoad.
* - \b web.* See \ref pageWeb.
* - \b transparent When outputting a PNG or SVG, make the white background transparent.
* Must be either "true" or "false"
* - \b in The URL or path of the input file, if "-" stdin is used. E.g. "http://google.com"
- * - \b out The path of the output file, if "-" stdout is used, if empty the content is storred
+ * - \b out The path of the output file, if "-" stdout is used, if empty the content is stored
* to a internalBuffer.
* - \b fmt The output format to use, must be either "", "jpg", "png", "bmp" or "svg".
* - \b screenWidth The with of the screen used to render is pixels, e.g "800".
@@ -149,8 +149,8 @@ CAPI(void) wkhtmltoimage_set_finished_callback(wkhtmltoimage_converter * convert
reinterpret_cast<MyImageConverter *>(converter)->finished_cb = cb;
}
-/*CAPI(void) wkhtmltoimage_begin_convertion(wkhtmltoimage_converter * converter) {
- reinterpret_cast<MyImageConverter *>(converter)->converter.beginConvertion();
+/*CAPI(void) wkhtmltoimage_begin_conversion(wkhtmltoimage_converter * converter) {
+ reinterpret_cast<MyImageConverter *>(converter)->converter.beginConversion();
}*/
CAPI(int) wkhtmltoimage_convert(wkhtmltoimage_converter * converter) {
2  src/lib/imageconverter.cc
View
@@ -98,7 +98,7 @@ void ImageConverterPrivate::pagesLoaded(bool ok) {
// test.setFormat(settings.fmt);
// if (!test.canWrite()) {
// if (!settings.quiet)printf("error: file format not supported\n");
-// httpErrorCode=EFAULT;
+// httpErrorCode=DEFAULT;
// return false;
// }
// create webkit frame and load website
2  src/lib/lib.pro
View
@@ -26,7 +26,7 @@ DEF_FILE = lib.def
DEFINES += __WKHTMLTOX_UNDEF_QT_DLL__
unix {
- headers.targit=headers
+ headers.target=headers
headers.files=../../include/wkhtmltox/*
headers.path=$$INSTALLBASE/include/wkhtmltox
4 src/lib/loadsettings.hh
View
@@ -33,7 +33,7 @@
namespace wkhtmltopdf {
namespace settings {
-/*! \brief Settings consdering proxy */
+/*! \brief Settings considering proxy */
struct DLL_PUBLIC Proxy {
Proxy();
//! Type of proxy to use
@@ -85,7 +85,7 @@ struct DLL_PUBLIC LoadPage {
// TODO MOVE
float zoomFactor;
- //! Map of custum header variables
+ //! Map of custom header variables
QList< QPair<QString, QString> > customHeaders;
//! Set if the custom header should be repeated for each resource request
22 src/lib/multipageloader.cc
View
@@ -138,7 +138,7 @@ ResourceObject::ResourceObject(MultiPageLoaderPrivate & mpl, const QUrl & u, con
connect(&webPage, SIGNAL(loadFinished(bool)), this, SLOT(loadFinished(bool)));
connect(&webPage, SIGNAL(printRequested(QWebFrame*)), this, SLOT(printRequested(QWebFrame*)));
- //If some ssl error occures we want sslErrors to be called, so the we can ignore it
+ //If some ssl error occurs we want sslErrors to be called, so the we can ignore it
connect(&networkAccessManager, SIGNAL(sslErrors(QNetworkReply*, const QList<QSslError>&)),this,
SLOT(sslErrors(QNetworkReply*, const QList<QSslError>&)));
@@ -245,7 +245,7 @@ void ResourceObject::loadDone() {
}
/*!
- * Called when the page requires authentication, filles in the username
+ * Called when the page requires authentication, fills in the username
* and password supplied on the command line
*/
void ResourceObject::handleAuthenticationRequired(QNetworkReply *reply, QAuthenticator *authenticator) {
@@ -285,7 +285,7 @@ void ResourceObject::amfinished(QNetworkReply * reply) {
}
/*!
- * Handel any ssl error by ignoring
+ * Handle any ssl error by ignoring
*/
void ResourceObject::sslErrors(QNetworkReply *reply, const QList<QSslError> &) {
//We ignore any ssl error, as it is next to impossible to send or receive
@@ -492,7 +492,7 @@ LoaderObject * MultiPageLoader::addResource(const QString & string, const settin
url = d->tempIn.create(".html");
QFile tmp(url);
if (!tmp.open(QIODevice::WriteOnly) || tmp.write(data->toUtf8())==0) {
- emit error("Unable to create temporery file");
+ emit error("Unable to create temporary file");
return NULL;
}
} else if (url == "-") {
@@ -501,7 +501,7 @@ LoaderObject * MultiPageLoader::addResource(const QString & string, const settin
url = d->tempIn.create(".html");
QFile tmp(url);
if (!tmp.open(QIODevice::WriteOnly) || !copyFile(in, tmp)) {
- emit error("Unable to create temporery file");
+ emit error("Unable to create temporary file");
return NULL;
}
}
@@ -612,30 +612,30 @@ void MultiPageLoader::cancel() {
/*!
\fn MultiPageLoader::loadFinished(bool ok)
- \brief Signal emmited when all pages have been loaded
+ \brief Signal emitted when all pages have been loaded
\param ok True if all the pages have been loaded sucessfully
*/
/*!
\fn MultiPageLoader::loadProgress(int progress)
- \brief Signal emmited once load has progressed
+ \brief Signal emitted once load has progressed
\param progress Progress in percent
*/
/*!
\fn MultiPageLoader::loadStarted()
- \brief Signal emmited when loading has started
+ \brief Signal emitted when loading has started
*/
/*!
\fn void MultiPageLoader::warning(QString text)
- \brief Signal emmitted when a none fatal warning has occured
- \param text A string descripting the warning
+ \brief Signal emitted when a none fatal warning has occured
+ \param text A string describing the warning
*/
/*!
\fn void MultiPageLoader::error(QString text)
- \brief Signal emmitted when a fatel error has occured
+ \brief Signal emitted when a fatal error has occured
\param text A string describing the error
*/
}
8 src/lib/outline.cc
View
@@ -95,7 +95,7 @@ bool OutlineItem::differentFrom(const OutlineItem * other) const {
/*!
\class OutlinePrivate
- \brief Class providing implemenation details of Outline
+ \brief Class providing implementation details of Outline
*/
OutlinePrivate::OutlinePrivate(const settings::PdfGlobal & s):
@@ -167,12 +167,12 @@ void Outline::dump(QTextStream & stream, const QString & xsl) const {
/*!
\file outline.hh
- \brief Defiens the Outline class
+ \brief Defines the Outline class
*/
/*!
\class Outline
- \brief Class responcible for building and keeping an outline of a document.
+ \brief Class responsible for building and keeping an outline of a document.
*/
/*!
@@ -203,7 +203,7 @@ bool Outline::replaceWebPage(int document,
headings[ qMakePair(location.first, qMakePair(location.second.y(), location.second.x()) ) ] = e;
}
- //This huristic is a little strange, it tries to create a real tree,
+ //This heuristic is a little strange, it tries to create a real tree,
//even though someone puts a h5 below a h1 or stuff like that
//The way this is handled is having a level stack, indicating what h-tags
//a level level in the tree currently represents
2  src/lib/pdf.h
View
@@ -58,7 +58,7 @@ CAPI(void) wkhtmltopdf_set_error_callback(wkhtmltopdf_converter * converter, wkh
CAPI(void) wkhtmltopdf_set_phase_changed_callback(wkhtmltopdf_converter * converter, wkhtmltopdf_void_callback cb);
CAPI(void) wkhtmltopdf_set_progress_changed_callback(wkhtmltopdf_converter * converter, wkhtmltopdf_int_callback cb);
CAPI(void) wkhtmltopdf_set_finished_callback(wkhtmltopdf_converter * converter, wkhtmltopdf_int_callback cb);
-/* CAPI(void) wkhtmltopdf_begin_convertion(wkhtmltopdf_converter * converter); */
+/* CAPI(void) wkhtmltopdf_begin_conversion(wkhtmltopdf_converter * converter); */
/* CAPI(void) wkhtmltopdf_cancel(wkhtmltopdf_converter * converter); */
CAPI(int) wkhtmltopdf_convert(wkhtmltopdf_converter * converter);
CAPI(void) wkhtmltopdf_add_object(
22 src/lib/pdf_c_bindings.cc
View
@@ -37,8 +37,8 @@
/**
* \page pagesettings Setting
* Settings can be supplied to PDF and image c-bindings using utf-8 encoded strings.
- * This is done by relatively simple reflection on the CropSettins, HeaderFooter, Margin,
- * ImageGlobal, PdfGlobal, PdfObject, Size, and TabelOfContent classes.
+ * This is done by relatively simple reflection on the CropSettings, HeaderFooter, Margin,
+ * ImageGlobal, PdfGlobal, PdfObject, Size, and TableOfContent classes.
*
* - The \ref wkhtmltopdf_global_settings corresponds to the PdfGlobal class and is documented in \ref pagePdfGlobal.
* - The \ref wkhtmltopdf_object_settings corresponds to the PdfGlobal class and is documented in \ref pagePdfObject.
@@ -55,7 +55,7 @@
* - \b web.printMediaType Should the content be printed using the print media type instead
* of the screen media type. Must be either "true" or "false". Has no effect for wkhtmltoimage.
* - \b web.defaultEncoding What encoding should we guess content is using if they do not
- * specify it propperly? E.g. "utf-8"
+ * specify it properly? E.g. "utf-8"
* - \b web.userStyleSheet Url er path to a user specified style sheet.
* - \b web.enablePlugins Should we enable NS plugins, must be either "true" or "false".
* Enabling this will have limited success.
@@ -65,24 +65,24 @@
* - \b load.username The user name to use when loging into a website, E.g. "bart"
* - \b load.password The password to used when logging into a website, E.g. "elbarto"
* - \b load.jsdelay The mount of time in milliseconds to wait after a page has done loading until
- * it is actualy printed. E.g. "1200". We will wait this amount of time or until, javascript
- * calles window.print().
+ * it is actually printed. E.g. "1200". We will wait this amount of time or until, javascript
+ * calls window.print().
* - \b load.zoomFactor How much should we zoom in on the content? E.g. "2.2".
* - \b load.customHeaders TODO
- * - \b load.repertCustomHeaders Should the custom headers be sendt all elements loaded instead of
+ * - \b load.repertCustomHeaders Should the custom headers be sent all elements loaded instead of
* only the main page? Must be either "true" or "false".
* - \b load.cookies TODO
* - \b load.post TODO
- * - \b load.blockLocalFileAccess Dissalow local and piped files to acces other local files. Must
+ * - \b load.blockLocalFileAccess Disallow local and piped files to access other local files. Must
* be either "true" or "false".
* - \b load.stopSlowScript Stop slow running javascript. Must be either "true" or "false".
* - \b load.debugJavascript Forward javascript warnings and errors to the warning callback.
* Must be either "true" or "false".
- * - \b load.loadErrorHandling How should we handel obejcts that fail to load. Must be one of:
+ * - \b load.loadErrorHandling How should we handle obejcts that fail to load. Must be one of:
* - "abort" Abort the convertion process
* - "skip" Do not add the object to the final output
* - "ignore" Try to add the object to the final output.
- * - \b load.proxy String describing whact proxy to use when loading the object.
+ * - \b load.proxy String describing what proxy to use when loading the object.
* - \b load.runScript TODO
*
* \section pageHeaderFooter Header and footer settings
@@ -647,8 +647,8 @@ CAPI(long) wkhtmltopdf_get_output(wkhtmltopdf_converter * converter, const unsig
// LocalWords: eval progn stroustrup innamespace sts sw noet wkhtmltopdf DLL
// LocalWords: ifdef WKHTMLTOX UNDEF undef endif pdf dllbegin namespace const
// LocalWords: QString cb bool ok globalSettings phaseChanged progressChanged
-// LocalWords: objectSettings utf CropSettins HeaderFooter ImageGlobal dpi sa
-// LocalWords: PdfGlobal PdfObject TabelOfContent pagePdfGlobal pagePdfObject
+// LocalWords: objectSettings utf CropSettings HeaderFooter ImageGlobal dpi sa
+// LocalWords: PdfGlobal PdfObject TableOfContent pagePdfGlobal pagePdfObject
// LocalWords: pageImageGlobal pageGlobalLoad paperSize colorMode Grayscale
// LocalWords: pageOffset outlineDepth dumpOutline stdout pageLoad pageWeb aa
// LocalWords: includeInOutline pagesCount tocXsl xsl struct typedef str CAPI
6 src/lib/pdfsettings.hh
View
@@ -38,7 +38,7 @@ namespace settings {
typedef QPair<qreal, QPrinter::Unit> UnitReal;
-/*! \brief Settings consdering margins */
+/*! \brief Settings considering margins */
struct DLL_PUBLIC Margin {
Margin();
//!Margin applied to the top of the page
@@ -62,7 +62,7 @@ struct DLL_PUBLIC Size {
UnitReal width;
};
-/*! \brief Settings considdirng the table of content */
+/*! \brief Settings considering the table of content */
struct DLL_PUBLIC TableOfContent {
TableOfContent();
//! Should we print dots between the name and the page number?
@@ -114,7 +114,7 @@ struct DLL_PUBLIC PdfGlobal {
//! How many copies do we wan to print
int copies;
- //! Should be print a whole copy before beginnig the next
+ //! Should be print a whole copy before beginning the next
bool collate;
//! Should we generate an outline and put it into the pdf file
10 src/lib/tempfile.cc
View
@@ -38,7 +38,7 @@
/*!
\class TempFile
- \brief Class responsible for creating and deleting temporery files
+ \brief Class responsible for creating and deleting temporary files
*/
TempFile::TempFile() {
}
@@ -48,9 +48,9 @@ TempFile::~TempFile() {
}
/*!
- \brief Create a new temporery file, deleteing the old if one exists
- \param ext The extention of the temporery file
- \returns Path of the new temporery file
+ \brief Create a new temporary file, deleting the old if one exists
+ \param ext The extention of the temporary file
+ \returns Path of the new temporary file
*/
QString TempFile::create(const QString & ext) {
remove();
@@ -59,7 +59,7 @@ QString TempFile::create(const QString & ext) {
}
/*!
- \brief Remove the temporery file hold by this object it it exists
+ \brief Remove the temporary file hold by this object it it exists
*/
void TempFile::remove() {
if (!path.isEmpty())
2  src/lib/utilities.cc
View
@@ -34,7 +34,7 @@ void loadSvg(QSvgRenderer * & ptr, const QString & path, const char * def, int w
if (path != "") {
ptr = new QSvgRenderer(path);
if (ptr->isValid()) return;
- qWarning() << "Faild to load " << path;
+ qWarning() << "Failed to load " << path;
delete ptr;
}
4 src/pdf/pdfarguments.cc
View
@@ -300,7 +300,7 @@ PdfCommandLineParser::PdfCommandLineParser(PdfGlobal & s, QList<PdfObject> & ps)
addarg("toc-header-text",0,"The header text of the toc", new QStrSetter(od.toc.captionText, "text"));
addarg("disable-toc-links",0,"Do not link from toc to sections", new ConstSetter<bool>(od.toc.forwardLinks, false));
- addarg("disable-dotted-lines",0,"Do not use dottet lines in the toc", new ConstSetter<bool>(od.toc.useDottedLines,false));
- addarg("toc-text-size-shrink",0,"For each level of headings in the toc the font is scaled by this facter", new FloatSetter(od.toc.fontScale, "real"));
+ addarg("disable-dotted-lines",0,"Do not use dotted lines in the toc", new ConstSetter<bool>(od.toc.useDottedLines,false));
+ addarg("toc-text-size-shrink",0,"For each level of headings in the toc the font is scaled by this factor", new FloatSetter(od.toc.fontScale, "real"));
addarg("toc-level-indentation",0,"For each level of headings in the toc indent by this length", new QStrSetter(od.toc.indentation, "width"));
}
6 src/pdf/pdfcommandlineparser.cc
View
@@ -109,7 +109,7 @@ void PdfCommandLineParser::readme(FILE * fd, bool html) const {
outputStaticProblems(o);
outputCompilation(o);
outputInstallation(o);
- outputExampels(o);
+ outputExamples(o);
delete o;
}
@@ -122,7 +122,7 @@ void PdfCommandLineParser::readme(FILE * fd, bool html) const {
//foreach(ArgHandler * h, longToHandler)
// h->useDefault(*d);
- //Load configuration from enviornment
+ //Load configuration from environment
//char * val;
//const char * vars[] = {"proxy","all_proxy","http_proxy", NULL};
//for(int i=0; vars[i]; ++i) {
@@ -175,7 +175,7 @@ void PdfCommandLineParser::parseArguments(int argc, const char ** argv, bool fro
ps.header.htmlUrl = ps.footer.htmlUrl = "";
ps.includeInOutline = false;
- //Setup varius cover settings her
+ //Setup various cover settings here
++arg;
} else if (!strcmp(argv[arg],"toc")) {
++arg;
2  src/pdf/pdfcommandlineparser.hh
View
@@ -54,7 +54,7 @@ public:
void outputDocStart(Outputter * o) const;
void outputCompilation(Outputter * o) const;
void outputInstallation(Outputter * o) const;
- void outputExampels(Outputter * o) const;
+ void outputExamples(Outputter * o) const;
//commandlineparser.cc
virtual QString appName() const {return "wkhtmltopdf";}
4 src/pdf/pdfdocparts.cc
View
@@ -150,7 +150,7 @@ void PdfCommandLineParser::outputPageBreakDoc(Outputter * o) const {
"display the top half on one page. And the bottom half on another page. "
"It will also break image in two and so on. If you are using the patched version of "
"QT you can use the CSS page-break-inside property to remedy this somewhat. "
- "There is no easy solution to this problem, until this is solved try organising "
+ "There is no easy solution to this problem, until this is solved try organizing "
"your HTML documents such that it contains many lines on which pages can be cut "
"cleanly.");
o->beginParagraph();
@@ -414,7 +414,7 @@ void PdfCommandLineParser::outputPageSizes(Outputter * o) const {
Output examples on how to use wkhtmltopdf
\param o The outputter to output to
*/
-void PdfCommandLineParser::outputExampels(Outputter * o) const {
+void PdfCommandLineParser::outputExamples(Outputter * o) const {
o->beginSection("Examples");
o->paragraph("This section presents a number of examples of how to invoke wkhtmltopdf.");
o->paragraph("To convert a remote HTML file to PDF:");
4 src/pdf/wkhtmltopdf.cc
View
@@ -43,7 +43,7 @@ using namespace wkhtmltopdf;
* reading commandline options from stdin
* \param buff the line to parse
* \param nargc on return will hold the number of arguments read
- * \param nargv on return will hold the argumenst read and be NULL terminated
+ * \param nargv on return will hold the arguments read and be NULL terminated
*/
enum State {skip, tok, q1, q2, q1_esc, q2_esc, tok_esc};
void parseString(char * buff, int &nargc, char **nargv) {
@@ -88,7 +88,7 @@ void parseString(char * buff, int &nargc, char **nargv) {
else buff[write++] = buff[read];
break;
case tok_esc:
- //Escape one char and return to the tokan parsing state
+ //Escape one char and return to the token parsing state
next_state=tok;
buff[write++] = buff[read];
break;
6 src/shared/commandlineparserbase.cc
View
@@ -86,7 +86,7 @@ void CommandLineParserBase::version(FILE * fd) const {
void CommandLineParserBase::parseArg(int sections, const int argc, const char ** argv, bool & defaultMode, int & arg, char * page) {
if (argv[arg][1] == '-') { //We have a long style argument
- //After an -- apperas in the argument list all that follows is interpited as default arguments
+ //After an -- apperas in the argument list all that follows is interpreted as default arguments
if (argv[arg][2] == '0') {
defaultMode=true;
return;
@@ -118,7 +118,7 @@ void CommandLineParserBase::parseArg(int sections, const int argc, const char **
if (j.value()->qthack)
fprintf(stderr, "The switch %s, is not support using unpatched qt, and will be ignored.", argv[arg]);
#endif
- //Skip allredy handled switch arguments
+ //Skip already handled switch arguments
arg += j.value()->argn.size();
} else {
int c=arg;//Remember the current argument we are parsing
@@ -151,7 +151,7 @@ void CommandLineParserBase::parseArg(int sections, const int argc, const char **
if (k.value()->qthack)
fprintf(stderr, "The switch -%c, is not support using unpatched qt, and will be ignored.", argv[c][j]);
#endif
- //Skip allredy handled switch arguments
+ //Skip already handled switch arguments
arg += k.value()->argn.size();
}
}
2  src/shared/commonarguments.cc
View
@@ -215,7 +215,7 @@ void CommandLineParserBase::addPageLoadArgs(LoadPage & s) {
addarg("post", 0, "Add an additional post field (repeatable)", new MapSetter<PostItemCreator<false> >(s.post, "name", "value"));
addarg("post-file", 0, "Post an additional file (repeatable)", new MapSetter<PostItemCreator<true> >(s.post, "name", "path"));
- addarg("disable-local-file-access", 0, "Do not allowed conversion of a local file to read in other local files, unless explecitily allowed with --allow", new ConstSetter<bool>(s.blockLocalFileAccess, true));
+ addarg("disable-local-file-access", 0, "Do not allowed conversion of a local file to read in other local files, unless explicitly allowed with --allow", new ConstSetter<bool>(s.blockLocalFileAccess, true));
addarg("enable-local-file-access", 0, "Allowed conversion of a local file to read in other local files.", new ConstSetter<bool>(s.blockLocalFileAccess, false));
addarg("allow", 0, "Allow the file or files from the specified folder to be loaded (repeatable)", new StringListSetter(s.allowed,"path"));
2  src/shared/commondocparts.cc
View
@@ -100,7 +100,7 @@ void CommandLineParserBase::outputProxyDoc(Outputter * o) const {
o->verbatim(
"<type> := \"http://\" | \"socks5://\"\n"
"<serif> := <username> (\":\" <password>)? \"@\"\n"
- "<proxy> := \"None\" | <type>? <sering>? <host> (\":\" <port>)?\n");
+ "<proxy> := \"None\" | <type>? <string>? <host> (\":\" <port>)?\n");
o->paragraph("Here are some examples (In case you are unfamiliar with the BNF):");
o->verbatim("http://user:password@myproxyserver:8080\n"
"socks5://myproxyserver\n"
2  src/shared/textoutputter.cc
View
@@ -176,7 +176,7 @@ class TextOutputter: public Outputter {
/*!
Create a raw text outputter, used for outputting --help and readme
\param fd A file description to output to
- \param doc Ouput in readme format
+ \param doc Output in readme format
\param extended Output extended options
*/
Outputter * Outputter::text(FILE * fd, bool doc, bool extended) {
Please sign in to comment.
Something went wrong with that request. Please try again.