mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-25 22:03:45 -06:00
RichText:EncodeHTML fixes
git-svn-id: svn://ultimatepp.org/upp/trunk@11264 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
8dd0ad4ef7
commit
57a891397d
1 changed files with 1 additions and 1 deletions
|
|
@ -190,7 +190,6 @@ String AsHtml(const RichTxt& text, const RichStyles& styles, Index<String>& css,
|
|||
RichPara p = text.Get(i, styles);
|
||||
if(p.format.ruler)
|
||||
html << "<hr>";
|
||||
String lbl = labels.Get(p.format.label, p.format.label);
|
||||
bool bultext = false;
|
||||
if(p.format.bullet == RichPara::BULLET_TEXT)
|
||||
for(int i = 0; i < p.part.GetCount(); i++) {
|
||||
|
|
@ -212,6 +211,7 @@ String AsHtml(const RichTxt& text, const RichStyles& styles, Index<String>& css,
|
|||
p.format.ruler = p.format.after = p.format.before = p.format.indent = p.format.lm = 0;
|
||||
}
|
||||
String par = "<p";
|
||||
String lbl = labels.Get(p.format.label, p.format.label);
|
||||
if(lbl.GetCount())
|
||||
par << " id=\"" << lbl << "\"";
|
||||
par << FormatClass(css, HtmlParaStyle(p.format, z)) << ">";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue