The end of a math macro is "\end_inset " (with a space after the t),
but mathed reads only "\end_inset" which results an extra space after
the macro when reading the file.
This space accumulates: After saving and reading the file there are two
spaces etc.
Attached is a fix for this bug.
Index: ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/ChangeLog,v
retrieving revision 1.293
diff -u -p -r1.293 ChangeLog
--- ChangeLog 1 Dec 2002 22:59:24 -0000 1.293
+++ ChangeLog 17 Dec 2002 17:54:22 -0000
@@ -1,3 +1,7 @@
+2002-12-17 Dekel Tsur <[EMAIL PROTECTED]>
+
+ * math_parser.C (tokenize): Fix macro reading.
+
2002-12-01 Lars Gullik Bj�nnes <[EMAIL PROTECTED]>
* several files: ws changes
Index: math_parser.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_parser.C,v
retrieving revision 1.257
diff -u -p -r1.257 math_parser.C
--- math_parser.C 27 Nov 2002 10:30:27 -0000 1.257
+++ math_parser.C 17 Dec 2002 17:54:23 -0000
@@ -403,6 +403,9 @@ void Parser::tokenize(istream & is)
break;
}
}
+ // Remove the space after \end_inset
+ if (is.get(c) && c != ' ')
+ is.unget();
// tokenize buffer
tokenize(s);