From e51636824377587ae2406e144702bc748ee90ae2 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 28 Nov 2008 12:18:00 +0000 Subject: [PATCH] Fixed HTML list output git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56988 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/richtext/richtexthtml.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/richtext/richtexthtml.cpp b/src/richtext/richtexthtml.cpp index e958d3f2f1..2c8694d0c7 100644 --- a/src/richtext/richtexthtml.cpp +++ b/src/richtext/richtexthtml.cpp @@ -239,8 +239,9 @@ void wxRichTextHTMLHandler::BeginParagraphFormatting(const wxTextAttr& WXUNUSED( int listType = TypeOfList(thisStyle, tag); m_listTypes.Add(listType); - wxString align = GetAlignment(thisStyle); - str << wxString::Format(wxT("

"), align.c_str()); + // wxHTML needs an extra

before a list when using

...

in previous paragraphs. + // TODO: pass a flag that indicates we're using wxHTML. + str << wxT("

\n"); str << tag; } @@ -290,7 +291,7 @@ void wxRichTextHTMLHandler::EndParagraphFormatting(const wxTextAttr& WXUNUSED(cu stream << wxT("

\n"); m_inTable = false; } - else + else if (!thisStyle.HasBulletStyle()) stream << wxT("

\n"); } -- 2.45.2