mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-25 22:03:45 -06:00
Core: CParser::ReadIdh (with '-' in id), RichText: EncodeHTML strikeout support, ide: --no-rebase for RepoSync PULL
This commit is contained in:
parent
848fbbdb5e
commit
09aff092f3
6 changed files with 976 additions and 3 deletions
|
|
@ -33,7 +33,18 @@ String HtmlFontStyle(Font f)
|
|||
style << Sprintf("font-size:%dpt;", f.GetHeight() * 72 / 600);
|
||||
style << (f.IsBold() ? "font-weight:bold;" : "font-weight:normal;");
|
||||
style << (f.IsItalic() ? "font-style:italic;" : "font-style:normal;");
|
||||
style << (f.IsUnderline() ? "text-decoration:underline;" : "text-decoration:none;");
|
||||
if(f.IsUnderline() || f.IsStrikeout()) {
|
||||
style << "text-decoration:";
|
||||
if(f.IsUnderline())
|
||||
style << "underline";
|
||||
if(f.IsStrikeout()) {
|
||||
if(f.IsUnderline())
|
||||
style << ' ';
|
||||
style << "line-through";
|
||||
}
|
||||
}
|
||||
else
|
||||
style << "text-decoration:none;";
|
||||
return style;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue