]> git.lyx.org Git - features.git/commit
Really fix bug #4468.
authorGeorg Baum <baum@lyx.org>
Thu, 4 Oct 2012 22:12:18 +0000 (00:12 +0200)
committerGeorg Baum <baum@lyx.org>
Thu, 4 Oct 2012 22:12:18 +0000 (00:12 +0200)
commit2f7f0c76312c4500147ee5795e2df030a2d5ae3a
treebf19d17da839b0203f8588ee0da6038db3b03b0a
parent5afe35cc59d3748df234750294fc4366785b2787
Really fix bug #4468.

The old fix was incomplete (\verb~\~ was translated to \verb~~ in roundtrip).
The real cause for this bug (and also the mistranslation of \href{...}{\}})
was the misbehaviour of Token::character() (see comment in Parser.h): This
method even returns a character if the category is catEscape, and this is not
wanted in most (all?) cases.
src/tex2lyx/Parser.cpp
src/tex2lyx/Parser.h
src/tex2lyx/test/test-insets.lyx.lyx
src/tex2lyx/test/test-insets.tex
src/tex2lyx/test/test-structure.lyx.lyx
src/tex2lyx/test/test-structure.tex
src/tex2lyx/text.cpp