diff --git a/src/richtext/richtexthtml.cpp b/src/richtext/richtexthtml.cpp index 301065a91e..0768034376 100644 --- a/src/richtext/richtexthtml.cpp +++ b/src/richtext/richtexthtml.cpp @@ -253,7 +253,12 @@ void wxRichTextHTMLHandler::BeginParagraphFormatting(const wxTextAttr& WXUNUSED( CloseLists(-1, str); wxString align = GetAlignment(thisStyle); - str << wxString::Format(wxT("

"), align.c_str()); + str << wxString::Format(wxT("

"); // Use a table int indentTenthsMM = thisStyle.GetLeftIndent() + thisStyle.GetLeftSubIndent(); @@ -276,7 +281,12 @@ void wxRichTextHTMLHandler::BeginParagraphFormatting(const wxTextAttr& WXUNUSED( CloseLists(-1, str); wxString align = GetAlignment(thisStyle); - str << wxString::Format(wxT("

"), align.c_str()); + str << wxString::Format(wxT("

"); } }