]> git.lyx.org Git - features.git/commitdiff
fix bug 2236
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Fri, 10 Mar 2006 14:57:39 +0000 (14:57 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Fri, 10 Mar 2006 14:57:39 +0000 (14:57 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13324 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/ChangeLog
src/tex2lyx/text.C

index 657211f0842f4531b8fc0bfca13d1911bd65615e..f4fb4db02c2fd0aa8ce4cc6a15c5ae3682cbc7d3 100644 (file)
@@ -1,3 +1,7 @@
+2006-03-10  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
+
+       * text.C (parse_text): Handle \verb
+
 2005-10-18  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
 
        * Makefile.am: rename LINKED_SOURCES to LINKED_FILES.
index 43339df7063bbb1b21bcf27bbfe7fa4abd9a4941..27078d9ce45d6b27fe3058d46a09a6af25ada415 100644 (file)
@@ -1956,6 +1956,15 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
                        }
                }
 
+               else if (t.cs() == "verb") {
+                       context.check_layout(os);
+                       char const delimiter = p.next_token().character();
+                       string const arg = p.getArg(delimiter, delimiter);
+                       ostringstream oss;
+                       oss << "\\verb" << delimiter << arg << delimiter;
+                       handle_ert(os, oss.str(), context);
+               }
+
                else if (t.cs() == "\"") {
                        context.check_layout(os);
                        string const name = p.verbatim_item();