mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-26 22:03:35 -06:00
RichEdit: EncodeHTML CSS fix ( #623, thanks dolik)
git-svn-id: svn://ultimatepp.org/upp/trunk@6724 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
14d1aa0953
commit
89dae538d9
1 changed files with 3 additions and 3 deletions
|
|
@ -65,17 +65,17 @@ String HtmlParaStyle(const RichPara::Format& f, Zoom z)
|
|||
String style;
|
||||
int lm = z * f.lm;
|
||||
if(f.bullet && f.bullet != RichPara::BULLET_TEXT) {
|
||||
style << "display:list-item;line-style-type:";
|
||||
style << "display:list-item;list-style-type:";
|
||||
switch(f.bullet) {
|
||||
case RichPara::BULLET_ROUND: style << "disc"; break;
|
||||
case RichPara::BULLET_ROUNDWHITE: style << "circle"; break;
|
||||
case RichPara::BULLET_BOX:
|
||||
case RichPara::BULLET_BOXWHITE: style << "square"; break;
|
||||
}
|
||||
style << ";line-style-position:inside;";
|
||||
style << ";list-style-position:inside;";
|
||||
lm += 20;
|
||||
}
|
||||
style << Format("margin:%d %d %d %d;text-indent:%d;",
|
||||
style << Format("margin:%dpx %dpx %dpx %dpx;text-indent:%dpx;",
|
||||
z * f.before,
|
||||
z * f.rm,
|
||||
z * f.after,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue