]> git.lyx.org Git - lyx.git/commitdiff
Simplify.
authorRichard Heck <rgheck@comcast.net>
Tue, 30 Mar 2010 22:51:11 +0000 (22:51 +0000)
committerRichard Heck <rgheck@comcast.net>
Tue, 30 Mar 2010 22:51:11 +0000 (22:51 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33961 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathScript.cpp

index e637e55b8c1afdc2bbcafc98bddcf40230f86faa..6ce45d4b0a0a36e5c6f2a693b98d84c6713804db 100644 (file)
@@ -655,8 +655,8 @@ void InsetMathScript::htmlize(HtmlStream & os) const
 
        if (u && d)
                os << MTag("span", "class='scripts'")
-                        << MTag("span", "class='sup'") << up() << ETag("span")
-                        << MTag("span", "class='sub'") << down() << ETag("span")
+                        << MTag("span") << up() << ETag("span")
+                        << MTag("span") << down() << ETag("span")
                         << ETag("span");
        else if (u)
                os << MTag("sup", "class='math'") << up() << ETag("sup");
@@ -778,8 +778,7 @@ void InsetMathScript::validate(LaTeXFeatures & features) const
        if (features.runparams().flavor == OutputParams::HTML)
                features.addPreambleSnippet("<style type=\"text/css\">\n"
                        "span.scripts{display: inline-block; vertical-align: middle; text-align:center; font-size: 75%;}\n"
-                       "span.sup{display: block;}\n"
-                       "span.sub{display: block;}\n"
+                       "span.scripts span {display: block;}\n"
                        "sub.math{font-size: 75%;}\n"
                        "sup.math{font-size: 75%;}\n"
                        "</style>");