fix bug 2236

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13325 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2006-03-10 15:00:56 +00:00
parent b4f7558414
commit 12439fa1c5
3 changed files with 15 additions and 0 deletions

View 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.

View 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();

View File

@ -24,6 +24,8 @@ What's new
- Convert line endings for external copy/paste on OS X (bug 1955)
- Translate \verb commands correctly in tex2lyx (bug 2236)
* Document input/output: