Backport r28544, fixing 5751.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29086 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-04-04 14:06:08 +00:00
parent 21eecedd72
commit 790376adbc
2 changed files with 2 additions and 3 deletions

View File

@ -61,7 +61,6 @@ void InsetNewlineParams::read(Lexer & lex)
kind = InsetNewlineParams::LINEBREAK;
else
lex.printError("Unknown kind: `$$Token'");
lex >> "\\end_inset";
}
@ -75,6 +74,7 @@ void InsetNewline::write(ostream & os) const
void InsetNewline::read(Lexer & lex)
{
params_.read(lex);
lex >> "\\end_inset";
}

View File

@ -79,8 +79,6 @@ void InsetNewpageParams::read(Lexer & lex)
kind = InsetNewpageParams::CLEARDOUBLEPAGE;
else
lex.printError("Unknown kind");
lex >> "\\end_inset";
}
@ -94,6 +92,7 @@ void InsetNewpage::write(ostream & os) const
void InsetNewpage::read(Lexer & lex)
{
params_.read(lex);
lex >> "\\end_inset";
}