X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/020b60117ffcb7c631c15e46e6ecb931ef0c2d72..f9226383059545b8f76bcde41f90d18fbfcffe00:/src/richtext/richtexthtml.cpp?ds=inline diff --git a/src/richtext/richtexthtml.cpp b/src/richtext/richtexthtml.cpp index e958d3f2f1..301065a91e 100644 --- a/src/richtext/richtexthtml.cpp +++ b/src/richtext/richtexthtml.cpp @@ -53,7 +53,7 @@ wxRichTextHTMLHandler::wxRichTextHTMLHandler(const wxString& name, const wxStrin bool wxRichTextHTMLHandler::CanHandle(const wxString& filename) const { wxString path, file, ext; - wxSplitPath(filename, & path, & file, & ext); + wxFileName::SplitPath(filename, & path, & file, & ext); return (ext.Lower() == wxT("html") || ext.Lower() == wxT("htm")); } @@ -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"); }