From fa8e3ded4dc562b9d2c4402f21cdaf5e09139257 Mon Sep 17 00:00:00 2001 From: corvid Date: Fri, 23 Oct 2009 22:57:05 +0000 Subject: rm redundant addSpace initWith* adds a space, and it needs to do so before updateValue(), so I'll leave it there. --- src/html.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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 */ } } -- cgit v1.2.3