diff --git a/src/richtext/richtextstyles.cpp b/src/richtext/richtextstyles.cpp index 7ecf846323..b66481a051 100644 --- a/src/richtext/richtextstyles.cpp +++ b/src/richtext/richtextstyles.cpp @@ -537,16 +537,30 @@ wxString wxRichTextStyleListBox::CreateHTML(wxRichTextStyleDefinition* def) cons { // TODO: indicate list format for list style types - wxString str(wxT("
"); + str << wxT(" | "); } - str << wxT(" | "); + if (isCentred) + str << wxT(" | "); + else + str << wxT(" | "); #ifdef __WXMSW__ int size = 3; @@ -601,9 +615,16 @@ wxString wxRichTextStyleListBox::CreateHTML(wxRichTextStyleDefinition* def) cons if (hasBold) str << wxT(""); + if (isCentred) + str << wxT(""); + str << wxT(""); - str += wxT(" |