mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
Handle 'end_inset' gracefully.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8173 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
cf20cb674b
commit
0aea5bd320
@ -1,3 +1,6 @@
|
||||
2003-12-01 Georg Baum <Georg.Baum@post.rwth-aachen.de>
|
||||
|
||||
* insetvspace.C (read): handle 'end_inset' token.
|
||||
|
||||
2003-12-01 Martin Vermeer <martin.vermeer@hut.fi>
|
||||
|
||||
|
@ -86,6 +86,13 @@ void InsetVSpace::read(Buffer const &, LyXLex & lex)
|
||||
lex.next();
|
||||
space_ = VSpace(lex.getString());
|
||||
}
|
||||
|
||||
if (lex.isOK())
|
||||
lex.next();
|
||||
if (lex.getString() != "\\end_inset") {
|
||||
lex.printError("Missing \\end_inset at this point. "
|
||||
"Read: `$$Token'");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user