]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathChar.cpp
tex2lyx/text.cpp: fix typos
[lyx.git] / src / mathed / InsetMathChar.cpp
index 2c87824282775cfec55a7f0a27929a194fc971cd..e23723ca8d3a6ed17b1dd117ae49faab4b9900e5 100644 (file)
@@ -173,7 +173,7 @@ void InsetMathChar::mathmlize(MathStream & ms) const
                case '>': entity = ">"; break;
                case '&': entity = "&"; break;
                case ' ': {
-                       ms << from_ascii("&nsbp;");
+                       ms << from_ascii("&nbsp;");
                        return;
                }
                default: break;
@@ -193,7 +193,7 @@ void InsetMathChar::mathmlize(MathStream & ms) const
        }               
 
        char const * type = 
-               (isalpha(char_) || Encodings::isMathAlpha(char_))
+               (isAlphaASCII(char_) || Encodings::isMathAlpha(char_))
                        ? "mi" : "mo";
        // we don't use MTag and ETag because we do not want the spacing
        ms << "<" << type << ">" << char_type(char_) << "</" << type << ">";    
@@ -227,7 +227,7 @@ void InsetMathChar::htmlize(HtmlStream & ms) const
                return;
        }               
 
-       if (isalpha(char_) || Encodings::isMathAlpha(char_))
+       if (isAlphaASCII(char_) || Encodings::isMathAlpha(char_))
                // we don't use MTag and ETag because we do not want the spacing
                ms << MTag("i") << char_type(char_) << ETag("i");
        else