]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathCases.cpp
Fix horizontal lines in math arrays
[lyx.git] / src / mathed / InsetMathCases.cpp
index 1b5df8dc9f1dbb68041a5f60984fdda8d05a5bb9..10d889555b91dccc2293424f0673df3a6004f59e 100644 (file)
@@ -177,11 +177,17 @@ void InsetMathCases::validate(LaTeXFeatures & features) const
        features.require("amsmath");
        InsetMathGrid::validate(features);
        if (features.runparams().math_flavor == OutputParams::MathAsHTML)
-               // CSS based on eLyXer's
+               // CSS based on eLyXer's, with modifications suggested in bug #8755
                features.addCSSSnippet(
-                       "table.cases{display: inline-block; text-align: center;"
+                       "table.cases{display: inline-block; text-align: center; border: none;"
                        "border-left: thin solid black; vertical-align: middle; padding-left: 0.5ex;}\n"
-                       "table.cases td {text-align: left;}");
+                       "table.cases td {text-align: left; border: none;}");
+}
+
+
+int InsetMathCases::displayColSpace(col_type) const
+{
+       return 20;
 }