mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
tex2lyx/text.cpp: don't parse catBegin in verbatim environments
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40859 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
85ccfd240c
commit
1a5891e1fd
@ -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();
|
||||
|
@ -296,7 +296,7 @@ jkh \ blah
|
||||
\begin{centering}
|
||||
|
||||
|
||||
zzz
|
||||
zzz \section{
|
||||
\end{raggedleft}
|
||||
|
||||
\end{verbatim}
|
||||
|
Loading…
Reference in New Issue
Block a user