From a6635eb987a3e30cfe33376313f70d347ee4b5a2 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 11 Aug 2009 09:27:25 +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/branches/WX_2_8_BRANCH@61641 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 33f3ef835d..ea3cb39ae9 100644 --- a/src/richtext/richtexthtml.cpp +++ b/src/richtext/richtexthtml.cpp @@ -253,7 +253,12 @@ void wxRichTextHTMLHandler::BeginParagraphFormatting(const wxTextAttrEx& WXUNUSE 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 wxTextAttrEx& WXUNUSE CloseLists(-1, str); wxString align = GetAlignment(thisStyle); - str << wxString::Format(wxT("

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

"); } }