comments and whitespace

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35391 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-09-15 13:54:56 +00:00
parent d7da77e1ca
commit 36765b8e21

View File

@ -1017,7 +1017,11 @@ void Layout::makeDefaultCSS() const {
// wipe out what we did before.
if (!htmldefaultstyle_.empty())
return;
// main font
htmldefaultstyle_ = font.asCSS();
// top and bottom margins
string tmp;
if (topsep > 0)
tmp += "margin-top: " + makeMarginValue(topsep) + ";\n";
@ -1028,12 +1032,17 @@ void Layout::makeDefaultCSS() const {
htmldefaultstyle_ += from_ascii("\n");
htmldefaultstyle_ += from_ascii(tmp);
}
// wrap up what we have, if anything
if (!htmldefaultstyle_.empty())
htmldefaultstyle_ =
from_ascii(htmltag() + "." + defaultCSSClass() + " {\n") +
htmldefaultstyle_ + from_ascii("\n}\n");
if (labelfont == font || htmllabeltag() == "NONE")
return;
// label font
docstring const labelfontCSS = labelfont.asCSS();
if (!labelfontCSS.empty())
htmldefaultstyle_ +=