mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
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:
parent
b4f7558414
commit
12439fa1c5
@ -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.
|
||||
|
@ -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();
|
||||
|
@ -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:
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user