]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathRoot.cpp
The previous commit was actually a fix for bug #9158.
[lyx.git] / src / mathed / InsetMathRoot.cpp
index 4a78ab997521ba92cd2d3a719136cd9958be947b..2b4b668b9d5a6235b94983511569acec606d7a88 100644 (file)
 
 #include "InsetMathRoot.h"
 
-#include "LaTeXFeatures.h"
 #include "MathData.h"
 #include "MathStream.h"
+
 #include "Cursor.h"
+#include "LaTeXFeatures.h"
+#include "MetricsInfo.h"
 
 #include "frontends/Painter.h"
 
+
 using namespace std;
 
 namespace lyx {
@@ -133,10 +136,9 @@ void InsetMathRoot::htmlize(HtmlStream & os) const
 void InsetMathRoot::validate(LaTeXFeatures & features) const
 {
        if (features.runparams().math_flavor == OutputParams::MathAsHTML)
-               features.addPreambleSnippet("<style type=\"text/css\">\n"
+               features.addCSSSnippet(
                        "span.rootof{border-top: thin solid black;}\n"
-                       "span.root sup{font-size: 75%;}\n"
-                       "</style>");
+                       "span.root sup{font-size: 75%;}");
        InsetMathNest::validate(features);
 }