]> git.lyx.org Git - features.git/blobdiff - src/tex2lyx/Parser.cpp
tex2lyx/text.cpp: don't parse catBegin in verbatim environments
[features.git] / src / tex2lyx / Parser.cpp
index 75eb5182033af6a2021df6972ddc18c4b035bf75..06027e880ad2d0209116f7ebf840535a739e3258 100644 (file)
@@ -488,10 +488,7 @@ string const Parser::plainEnvironment(string const & name)
 
        ostringstream os;
        for (Token t = get_token(); good(); t = get_token()) {
-               if (t.cat() == catBegin) {
-                       putback();
-                       os << '{' << verbatim_item() << '}';
-               } else if (t.asInput() == "\\end") {
+               if (t.asInput() == "\\end") {
                        string const end = getArg('{', '}');
                        if (end == name)
                                return os.str();