aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2009-10-23 22:57:05 +0000
committercorvid <corvid@lavabit.com>2009-10-23 22:57:05 +0000
commitfa8e3ded4dc562b9d2c4402f21cdaf5e09139257 (patch)
treeeaaf6909ad424ef676a93f6f42a95c93358b6378
parent43e8a66deeb77ca030b774dc8b7aeb41a5885d62 (diff)
rm redundant addSpace
initWith* adds a space, and it needs to do so before updateValue(), so I'll leave it there.
-rw-r--r--src/html.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/html.cc b/src/html.cc
index f58da4eb..791330db 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -2666,12 +2666,11 @@ static void Html_tag_open_li(DilloHtml *html, const char *tag, int tagsize)
}
numtostr((*list_number)++, buf, 16, style->listStyleType);
list_item->initWithText (buf, wordStyle);
- list_item->addSpace (wordStyle);
- html->PrevWasSPC = true;
+ html->PrevWasSPC = true; /* space added in initWithText */
} else {
// unordered
list_item->initWithWidget (new Bullet(), wordStyle);
- list_item->addSpace (wordStyle);
+ html->PrevWasSPC = true; /* space added in initWithWidget */
}
}