]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_write.C
Do not make spaces unbreakable when tt font is used in a paragraph
[lyx.git] / src / mathed / math_write.C
index 53eb4d87e164cb5801c23522e56666dc86a8613d..3adbdfd25b918c7c37ca2429564c936898d7b8ba 100644 (file)
@@ -21,6 +21,7 @@
 #include "math_iter.h"
 #include "math_parser.h"
 #include "support/lstrings.h"
+#include "debug.h"
 
 extern char const *latex_mathenv[];
 extern char *latex_mathspace[];
@@ -290,7 +291,8 @@ void MathParInset::Write(string &outf)
                 outf += l->name;
                 outf += ' ';
               } else { 
-                fprintf(stderr, "Illegal symbol code[%u %d %d]", *s, ls, data.FCode());
+                      lyxerr << "Illegal symbol code[" << *s
+                             << " " << ls << " " << data.FCode() << "]";
               }
            } else {
               // Is there a standard logical XOR?
@@ -302,7 +304,8 @@ void MathParInset::Write(string &outf)
                  if (*s=='}') brace--;
               }
               if (*s=='}' && data.FCode()==LM_TC_TEX && brace<0) 
-                fprintf(stderr, "Math warning: Unexpected closing brace.\n");
+                      lyxerr <<"Math warning: Unexpected closing brace."
+                             << endl;
               else            
                 outf += (char) *s;
            }
@@ -348,7 +351,7 @@ void MathParInset::Write(string &outf)
               break;
            }
         default:
-          fprintf(stderr, "WMath Error: unrecognized code[%d]", cx);
+                lyxerr << "WMath Error: unrecognized code[" << cx << "]";
           return;
        }     
    }