]> git.lyx.org Git - features.git/commitdiff
Special handing of space characters during text output.
authorRichard Heck <rgheck@comcast.net>
Thu, 31 Dec 2009 19:40:36 +0000 (19:40 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 31 Dec 2009 19:40:36 +0000 (19:40 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32709 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathChar.cpp

index 8832a751a87e0ca43c2163a40b92f16568f57c65..e1d64ec866c2c94dc25a1c68825f48bb6c85413d 100644 (file)
@@ -172,6 +172,11 @@ void InsetMathChar::mathmlize(MathStream & ms) const
                case '<': entity = "&lt;"; break;
                case '>': entity = "&gt;"; break;
                case '&': entity = "&amp;"; break;
+               case ' ': 
+                       if (!ms.inText())
+                               break;
+                       entity = "&ThinSpace;";
+                       break;
                default: break;
        }