diff options
author | corvid <corvid@lavabit.com> | 2009-09-20 02:47:53 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2009-09-20 02:47:53 +0000 |
commit | da3f5268045b5edff01b53f475a56cb0795c7bb1 (patch) | |
tree | dfef39b21438155350b5f755893fe5878a15b1cc /src | |
parent | 6a1945e459f5c4ecd0ec89b6501e0daf10f77b41 (diff) |
trim some spaces
Diffstat (limited to 'src')
-rw-r--r-- | src/IO/http.c | 2 | ||||
-rw-r--r-- | src/css.cc | 4 | ||||
-rw-r--r-- | src/cssparser.cc | 4 | ||||
-rw-r--r-- | src/html.cc | 4 | ||||
-rw-r--r-- | src/jpeg.c | 2 | ||||
-rw-r--r-- | src/keysrc | 2 | ||||
-rw-r--r-- | src/paths.cc | 2 | ||||
-rw-r--r-- | src/prefsparser.cc | 2 | ||||
-rw-r--r-- | src/styleengine.cc | 6 | ||||
-rw-r--r-- | src/uicmd.cc | 4 | ||||
-rw-r--r-- | src/xembed.cc | 2 |
11 files changed, 17 insertions, 17 deletions
diff --git a/src/IO/http.c b/src/IO/http.c index dd6ed3ca..195fd155 100644 --- a/src/IO/http.c +++ b/src/IO/http.c @@ -447,7 +447,7 @@ char *a_Http_make_connect_str(const DilloUrl *url) "Host: %s\r\n" "%s" "\r\n", - auth2, + auth2, auth2, proxy_auth); @@ -397,7 +397,7 @@ void CssStyleSheet::addRule (CssRule *rule) { * * The properties are set as defined by the rules in the stylesheet that * match at the given node in the document tree. - */ + */ void CssStyleSheet::apply (CssPropertyList *props, Doctree *docTree, const DoctreeNode *node) { static const int maxLists = 32; @@ -544,7 +544,7 @@ void CssContext::addRule (CssSelector *sel, CssPropertyList *props, /** * \brief Create the user agent style. * - * The user agent style defines how dillo renders HTML in the absence of + * The user agent style defines how dillo renders HTML in the absence of * author or user styles. */ void CssContext::buildUserAgentStyle () { diff --git a/src/cssparser.cc b/src/cssparser.cc index 2550e74e..5ef53dcf 100644 --- a/src/cssparser.cc +++ b/src/cssparser.cc @@ -685,9 +685,9 @@ bool CssParser::parseRgbColorComponent(int32_t *cc, int *percentage) { MSG_CSS("expected integer not found in %s color\n", "rgb"); return false; } - + *cc = strtol(tval, NULL, 10); - + nextToken(); if (ttype == CSS_TK_CHAR && tval[0] == '%') { if (*percentage == 0) { diff --git a/src/html.cc b/src/html.cc index 7243b7b3..b2a3c543 100644 --- a/src/html.cc +++ b/src/html.cc @@ -1750,7 +1750,7 @@ static void Html_tag_open_body(DilloHtml *html, const char *tag, int tagsize) html->styleEngine->startElement (tag_index_a); html->styleEngine->setPseudoVisited (); if (html->non_css_visited_color != -1) { - CssPropertyList vprops; + CssPropertyList vprops; vprops.set (CSS_PROPERTY_COLOR, CSS_TYPE_COLOR, html->non_css_visited_color); html->styleEngine->setNonCssHints (&vprops); @@ -2009,7 +2009,7 @@ DilloImage *a_Html_image_new(DilloHtml *html, const char *tag, CSS_LENGTH_VALUE(l_h) : 0); } /* Check for suspicious image size request that would cause - * an excessive amount of memory to be allocated for the + * an excessive amount of memory to be allocated for the * image buffer. * Be careful to avoid integer overflows during the checks. * There is an additional check in dw/image.cc to catch cases @@ -286,7 +286,7 @@ static void Jpeg_write(DilloJpeg *jpeg, void *Buf, uint_t BufSize) /* check max image size */ if (jpeg->cinfo.image_width <= 0 || jpeg->cinfo.image_height <= 0 || - jpeg->cinfo.image_width > + jpeg->cinfo.image_width > IMAGE_MAX_AREA / jpeg->cinfo.image_height) { MSG("Jpeg_write: suspicious image size request %ux%u\n", (uint_t)jpeg->cinfo.image_width, @@ -67,7 +67,7 @@ # "goto" goes to the location bar at the top of the window. #<ctrl>l = goto -# "stop" loading the page. +# "stop" loading the page. #(stop has no default binding) # "save" the current page. diff --git a/src/paths.cc b/src/paths.cc index 9d0abda0..6fccb89a 100644 --- a/src/paths.cc +++ b/src/paths.cc @@ -38,7 +38,7 @@ void Paths::init(void) oldWorkingDir = dGetcwd(); rc = chdir("/tmp"); if (rc == -1) { - MSG("paths: error changing directory to /tmp: %s\n", + MSG("paths: error changing directory to /tmp: %s\n", dStrerror(errno)); } diff --git a/src/prefsparser.cc b/src/prefsparser.cc index a3bbaef0..e77aecf6 100644 --- a/src/prefsparser.cc +++ b/src/prefsparser.cc @@ -48,7 +48,7 @@ int PrefsParser::parseOption(char *name, char *value) { "allow_white_bg", &prefs.allow_white_bg, PREFS_BOOL }, { "buffered_drawing", &prefs.buffered_drawing, PREFS_INT32 }, { "contrast_visited_color", &prefs.contrast_visited_color, PREFS_BOOL }, - { "enterpress_forces_submit", &prefs.enterpress_forces_submit, + { "enterpress_forces_submit", &prefs.enterpress_forces_submit, PREFS_BOOL }, { "focus_new_tab", &prefs.focus_new_tab, PREFS_BOOL }, { "font_cursive", &prefs.font_cursive, PREFS_STRING }, diff --git a/src/styleengine.cc b/src/styleengine.cc index 8bf78635..a54fdeb3 100644 --- a/src/styleengine.cc +++ b/src/styleengine.cc @@ -516,10 +516,10 @@ bool StyleEngine::computeLength (dw::core::style::Length *dest, * \brief Similar to StyleEngine::style(), but with backgroundColor set. * A normal style might have backgroundColor == NULL to indicate a transparent * background. This method ensures that backgroundColor is set. - */ + */ Style * StyleEngine::backgroundStyle () { StyleAttrs attrs = *style (); - + for (int i = stack->size () - 1; i >= 0 && ! attrs.backgroundColor; i--) attrs.backgroundColor = stack->getRef (i)->style->backgroundColor; @@ -542,7 +542,7 @@ Style * StyleEngine::style0 (CssPropertyList *nonCssProperties) { // Ensure that StyleEngine::style0() has not been called before for // this element. // Style computation is expensive so limit it as much as possible. - // If this assertion is hit, you need to rearrange the code that is + // If this assertion is hit, you need to rearrange the code that is // doing styleEngine calls to call setNonCssHints() before calling // style() or wordStyle() for each new element. assert (stack->getRef (stack->size () - 1)->style == NULL); diff --git a/src/uicmd.cc b/src/uicmd.cc index d9cce163..7ea523d0 100644 --- a/src/uicmd.cc +++ b/src/uicmd.cc @@ -314,7 +314,7 @@ public: if (e == PUSH) { /* WORKAROUND: FLTK raises the window on unhandled clicks, * which we do not want. - */ + */ ret = 1; } return ret; @@ -1129,7 +1129,7 @@ void a_UIcmd_scroll(BrowserWindow *bw, int icmd) } } } - + /* * Get location's text */ diff --git a/src/xembed.cc b/src/xembed.cc index 83143e8b..04a4362a 100644 --- a/src/xembed.cc +++ b/src/xembed.cc @@ -21,7 +21,7 @@ #if USE_X11 -typedef enum { +typedef enum { XEMBED_EMBEDDED_NOTIFY = 0, XEMBED_WINDOW_ACTIVATE = 1, XEMBED_WINDOW_DEACTIVATE = 2, |