]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSplit.cpp
Cmake export tests: Added sublabel handling also to revertedTests
[lyx.git] / src / mathed / InsetMathSplit.cpp
index de4ddc03202f9b5bd86b4d1676494ad15a971419..5c425fb00297dc03ee448daa03442a777532b15a 100644 (file)
@@ -104,6 +104,7 @@ void InsetMathSplit::write(WriteStream & ws) const
        if (!numbered_ && name_ == "align")
                suffix = from_ascii("*");
        ws << "\\begin{" << name_ << suffix << '}';
+       bool open = ws.startOuterRow();
        if (name_ != "split" && name_ != "align" && verticalAlignment() != 'c')
                ws << '[' << verticalAlignment() << ']';
        if (name_ == "alignedat")
@@ -112,6 +113,8 @@ void InsetMathSplit::write(WriteStream & ws) const
        if (ws.fragile())
                ws << "\\protect";
        ws << "\\end{" << name_ << suffix << "}\n";
+       if (open)
+               ws.startOuterRow();
 }