]> git.lyx.org Git - features.git/commit
Fix bug #5408: tex2lyx cannot handle verbatim code
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 25 Jan 2013 11:48:52 +0000 (12:48 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 4 Feb 2013 09:25:58 +0000 (10:25 +0100)
commitbe42f1398db05353bdab6fa328a4e86d11ce6b97
treeb6ba015c12b6d2ae9de6b8242286491b84fe5490
parente609787a0f90a2f66fe8177c29cdc9daeba28fd6
Fix bug #5408: tex2lyx cannot handle verbatim code

- Implement catcode setting in Parser
- add a new Parser::verbatimStuff method that reads verbatim contents
- use this method to parse "verbatim" environment.
- use it to parse \verb too.
- rename Parser::verbatimEnvironment to ertEnvironment.

TODO:
- use for other verbatim-like cases (Sweave chunk, lstlisting...)
- factor out the function that outputs ERT (including line breaks)
- maybe implement Parser::unparse (if needed)
lib/layouts/stdlayouts.inc
src/tex2lyx/Parser.cpp
src/tex2lyx/Parser.h
src/tex2lyx/Preamble.cpp
src/tex2lyx/table.cpp
src/tex2lyx/text.cpp