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:
Uwe Stöhr 2012-03-05 21:04:21 +00:00
parent 85ccfd240c
commit 1a5891e1fd
2 changed files with 2 additions and 5 deletions

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

View File

@ -296,7 +296,7 @@ jkh \ blah
\begin{centering}
zzz
zzz \section{
\end{raggedleft}
\end{verbatim}