]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathKern.cpp
Substack support for XHTML.
[lyx.git] / src / mathed / InsetMathKern.cpp
index ccb01c411ba816b22b751bed83cc4eba331bb1fd..7f990f996842ff99068b19794feb5d72186a6695 100644 (file)
@@ -57,13 +57,19 @@ void InsetMathKern::draw(PainterInfo &, int, int) const
 
 void InsetMathKern::write(WriteStream & os) const
 {
-       os << "\\kern" << from_utf8(wid_.asLatexString()) << ' ';
+       if (wid_.empty())
+               os << "\\kern" << ' ';
+       else
+               os << "\\kern" << from_utf8(wid_.asLatexString()) << ' ';
 }
 
 
 void InsetMathKern::normalize(NormalStream & os) const
 {
-       os << "[kern " << from_utf8(wid_.asLatexString()) << ']';
+       if (wid_.empty())
+               os << "[kern]";
+       else
+               os << "[kern " << from_utf8(wid_.asLatexString()) << ']';
 }