Index: EncodeHTML.cpp =================================================================== --- EncodeHTML.cpp (wersja 9974) +++ EncodeHTML.cpp (kopia robocza) @@ -60,6 +60,30 @@ return style + HtmlFontStyle(cf, sf); } +String HtmlParaLineSpacingStyle(const RichPara::Format& f) +{ + String style; + + if (f.linespacing == RichPara::LSP10) + return style; + + style << "line-height:"; + switch (f.linespacing) { + case RichPara::LSP15: + style << "150"; + break; + case RichPara::LSP20: + style << "200"; + break; + default: + style << "100"; + break; + } + style << "%;"; + + return style; +} + String HtmlParaStyle(const RichPara::Format& f, Zoom z) { String style; @@ -92,6 +116,8 @@ style << HtmlStyleColor(f.ink) + HtmlFontStyle(f); if(!IsNull(f.paper)) style << HtmlStyleColor(f.paper, "background-color"); + style << HtmlParaLineSpacingStyle(f); + return style; }