]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathFont.cpp
Attempt to fix #8137 (arrived at r40862).
[lyx.git] / src / mathed / InsetMathFont.cpp
index efd43ced126e886b57636932ef7a7c769e97307a..26789e71e8016f351bf1123953b381275d8f8b0e 100644 (file)
@@ -107,7 +107,7 @@ void InsetMathFont::validate(LaTeXFeatures & features) const
                if (key_->name == "ce" || key_->name == "cf")
                        features.require("mhchem");
        } else if (features.runparams().math_flavor == OutputParams::MathAsHTML) {
-               features.addPreambleSnippet("<style type=\"text/css\">\n"
+               features.addCSSSnippet(
                        "span.normal{font: normal normal normal inherit serif;}\n"
                        "span.fraktur{font: normal normal normal inherit cursive;}\n"
                        "span.bold{font: normal normal bold inherit serif;}\n"
@@ -115,8 +115,7 @@ void InsetMathFont::validate(LaTeXFeatures & features) const
                        "span.italic{font: italic normal normal inherit serif;}\n"
                        "span.sans{font: normal normal normal inherit sans-serif;}\n"
                        "span.monospace{font: normal normal normal inherit monospace;}\n"
-                       "span.noun{font: normal small-caps normal inherit normal;}\n"
-                       "</style>");
+                       "span.noun{font: normal small-caps normal inherit normal;}");
        }
 }