From 52bd35f359038e74b2e78b436a01500b84eede70 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 25 Jan 2008 15:02:44 +0000 Subject: [PATCH] HTML output corrections git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/richtext/richtexthtml.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/richtext/richtexthtml.cpp b/src/richtext/richtexthtml.cpp index ef17012ab8..798c8c7027 100644 --- a/src/richtext/richtexthtml.cpp +++ b/src/richtext/richtexthtml.cpp @@ -85,8 +85,6 @@ bool wxRichTextHTMLHandler::DoSaveFile(wxRichTextBuffer *buffer, wxOutputStream& if ((GetFlags() & wxRICHTEXT_HANDLER_NO_HEADER_FOOTER) == 0) str << wxT("\n"); - str << wxT("
"); - OutputFont(currentParaStyle, str); m_font = false; @@ -148,8 +146,6 @@ bool wxRichTextHTMLHandler::DoSaveFile(wxRichTextBuffer *buffer, wxOutputStream& str << wxT(""); - str << wxT("

"); - if ((GetFlags() & wxRICHTEXT_HANDLER_NO_HEADER_FOOTER) == 0) str << wxT(""); @@ -219,9 +215,7 @@ void wxRichTextHTMLHandler::BeginParagraphFormatting(const wxTextAttrEx& WXUNUSE { if (thisStyle.HasPageBreak()) { - str << wxT(""); str << wxT("

\n"); - str << wxT("
"); } if (thisStyle.HasLeftIndent() && thisStyle.GetLeftIndent() != 0) @@ -293,9 +287,11 @@ void wxRichTextHTMLHandler::EndParagraphFormatting(const wxTextAttrEx& WXUNUSED( if (thisStyle.HasFont()) stream << wxT(""); - stream << wxT("
\n"); + stream << wxT("

\n"); m_inTable = false; } + else + stream << wxT("

\n"); } /// Closes lists to level (-1 means close all)