From 2b2c1044f9df296935aadd23e2a58f79b018905f Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 11 Aug 2009 09:28:02 +0000 Subject: [PATCH] If zero spacing after paragraph is explicitly specified, suppress spacing after paragraph. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/richtext/richtexthtml.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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("

"); } } -- 2.45.2