mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
tex2lyx/text.cpp: a fix and a clarification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40813 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
914491df96
commit
0d165bf5d6
@ -1353,8 +1353,9 @@ void parse_environment(Parser & p, ostream & os, bool outer,
|
||||
else if (*it == '\n') {
|
||||
it2 = it + 1;
|
||||
// avoid adding an empty paragraph at the end
|
||||
// if there are 2 consecutive spaces at the end ignore it
|
||||
// FIXME: if there are 2 consecutive spaces at the end ignore it
|
||||
// because LyX will re-add a \n
|
||||
// This hack must be removed once bug 8049 is fixed!
|
||||
if ((it + 1 != et) && (it + 2 != et || *it2 != '\n'))
|
||||
os << "\n\\end_layout\n\\begin_layout Verbatim\n";
|
||||
} else
|
||||
@ -1362,7 +1363,6 @@ void parse_environment(Parser & p, ostream & os, bool outer,
|
||||
}
|
||||
os << "\n\\end_layout\n\n";
|
||||
p.skip_spaces();
|
||||
skip_braces(p); // eat {} that might by set by LyX behind comments
|
||||
// reset to Standard layout
|
||||
os << "\n\\begin_layout Standard\n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user