From d8b1c71b7f9ad6e4764ae95ecdd8fdc25fa84e52 Mon Sep 17 00:00:00 2001 From: corvid Date: Sat, 24 Oct 2009 00:27:08 +0000 Subject: don't appear to need WordAfterLI anymore --- src/html.cc | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/html.cc') diff --git a/src/html.cc b/src/html.cc index 791330db..593a77bb 100644 --- a/src/html.cc +++ b/src/html.cc @@ -1213,8 +1213,6 @@ static void Html_process_word(DilloHtml *html, const char *word, int size) if (Pword == word2) dFree(Pword); } - if (html->InFlags & IN_LI) - html->WordAfterLI = true; } /* @@ -1792,13 +1790,7 @@ static void Html_tag_open_p(DilloHtml *html, const char *tag, int tagsize) a_Html_tag_set_align_attr (html, &props, tag, tagsize); html->styleEngine->inheritBackgroundColor (); html->styleEngine->setNonCssHints (&props); - - if ((html->InFlags & IN_LI) && !html->WordAfterLI) { - /* ignore first parbreak after an empty
  • */ - html->WordAfterLI = true; - } else { - HT2TB(html)->addParbreak (9, html->styleEngine->wordStyle ()); - } + HT2TB(html)->addParbreak (9, html->styleEngine->wordStyle ()); } /* @@ -2639,7 +2631,6 @@ static void Html_tag_open_li(DilloHtml *html, const char *tag, int tagsize) BUG_MSG("
  • outside