diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2008-02-26 22:31:38 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2008-02-26 22:31:38 +0000 |
commit | 748937547a27e58979c2c8385dd9aec5e62aa9da (patch) | |
tree | 5fdb3a2d57213c3bef3beff832666879e3a3b916 /render/box_construct.c | |
parent | 1cf46a6792a9e243edb857e131e44338bcbbd341 (diff) | |
download | netsurf-748937547a27e58979c2c8385dd9aec5e62aa9da.tar.gz netsurf-748937547a27e58979c2c8385dd9aec5e62aa9da.tar.bz2 |
Don't meddle with blockquote's margins.
svn path=/trunk/netsurf/; revision=3869
Diffstat (limited to 'render/box_construct.c')
-rw-r--r-- | render/box_construct.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/render/box_construct.c b/render/box_construct.c index 741816ac8..3790d70d3 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -1164,7 +1164,8 @@ struct css_style * box_get_style(struct content *c, */ if (markup_track->align != ALIGN_NONE && (style->display == CSS_DISPLAY_BLOCK || - style->display == CSS_DISPLAY_TABLE)) { + style->display == CSS_DISPLAY_TABLE) && + (strcmp((const char *) n->name, "blockquote") != 0)) { if (!author->margin[LEFT]) { if (markup_track->align == ALIGN_LEFT) { /* left */ @@ -1348,7 +1349,7 @@ void box_text_transform(char *s, unsigned int len, if ((unsigned char) s[0] < 0x80) s[0] = toupper(s[0]); for (i = 1; i < len; ++i) - if ((unsigned char) s[i] < 0x80 && + if ((unsigned char) s[i] < 0x80 && isspace(s[i - 1])) s[i] = toupper(s[i]); break; |