texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Texmacs-dev] [bug] multiple trailing spaces serialization


From: David Allouche
Subject: [Texmacs-dev] [bug] multiple trailing spaces serialization
Date: Fri, 27 Sep 2002 10:25:24 +0200
User-agent: Mutt/1.4i

While reverse engineering the TM file format (to answer to an old bug
report) I found a very funny bug in the serialization (memory to file
conversion) code for the TM format (also known as angle brackets and
backslashes).

Description:

Create a new file. Type in the following text: "abc " (one trailing
space), save the file. The text line is serialized as "abc\ ". So far,
so good.

Add one trailing space (yielding "abc  ", with two trailing spaces),
save the file. The line is serialized as "abc \\ ". Revert the buffer,
the displayed text becomes "abc \"!!!

That bug works with any number of trailing spaces greater than one,
and at the end of any multiparagrah environment (e.g. theorem), but
only at the end of block environments.

-- 
_.      _    .   GNU TeXmacs -- Writing is a pleasure.
 |\     |    |\       Home page -- http://www.texmacs.org
 | \ ,-.|,--.| \      Resources -- http://alqua.com/tmresources
 |  \|  |,-+||--\            TeXmacs is NOT a LaTeX front-end
-+--'`- \`-'\-   -           and is unrelated to emacs.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]