]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_amsarrayinset.C
Fix reading of math macros
[lyx.git] / src / mathed / math_amsarrayinset.C
index ad8056138cfe748b4db30bd9db8aa696dc91013b..0f13ce35115fa96a528a06197c1bd206dd50bab5 100644 (file)
@@ -33,6 +33,8 @@ char const * MathAMSArrayInset::name_left() const
 {
        if (name_ == "bmatrix")
                return "[";
+       if (name_ == "Bmatrix")
+               return "{";
        if (name_ == "vmatrix")
                return "|";
        if (name_ == "Vmatrix")
@@ -47,6 +49,8 @@ char const * MathAMSArrayInset::name_right() const
 {
        if (name_ == "bmatrix")
                return "]";
+       if (name_ == "Bmatrix")
+               return "}";
        if (name_ == "vmatrix")
                return "|";
        if (name_ == "Vmatrix")
@@ -78,16 +82,15 @@ void MathAMSArrayInset::draw(MathPainterInfo & pi, int x, int y) const
 
 void MathAMSArrayInset::write(WriteStream & os) const
 {
-       os << "\\begin{" << name_ << "}";
+       os << "\\begin{" << name_ << '}';
        MathGridInset::write(os);
-       os << "\\end{" << name_ << "}";
+       os << "\\end{" << name_ << '}';
 }
 
 
 void MathAMSArrayInset::normalize(NormalStream & os) const
 {
-       os << "[" << name_ << " ";
+       os << '[' << name_ << ' ';
        MathGridInset::normalize(os);
-       os << "]";
+       os << ']';
 }
-