#include "InsetMathXYMatrix.h"
-#include "LaTeXFeatures.h"
#include "MathStream.h"
+#include "LaTeXFeatures.h"
+#include "MetricsInfo.h"
+
#include <ostream>
namespace lyx {
{
MathEnsurer ensurer(os);
os << "\\xymatrix";
+ bool open = os.startOuterRow();
if (equal_spacing_) {
os << "@!";
switch (spacing_code_) {
}
os << '{';
InsetMathGrid::write(os);
- os << "}\n";
+ os << "}";
+ if (open)
+ os.startOuterRow();
+ os << "\n";
}