Really fix start_of_appendix output

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9768 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2005-03-31 16:37:10 +00:00
parent 2e801efc57
commit 5307494394
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2005-03-31 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* text.C (parse_text): Really fix \start_of_appendix output
2005-03-27 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* tex2lyx.C (read_syntaxfile): Don't use racy test with IsFileReadable

View File

@ -1158,6 +1158,12 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
// appendix in '\par\appendix\par\chapter{' would
// start too late.
context.check_layout(os);
// FIXME: This is a hack to prevent paragraph
// deletion if it is empty. Handle this better!
handle_comment(os,
"%dummy comment inserted by tex2lyx to "
"ensure that this paragraph is not empty",
context);
// Both measures above may generate an additional
// empty paragraph, but that does not hurt, because
// whitespace does not matter here.