]> git.lyx.org Git - features.git/commitdiff
Really fix start_of_appendix output
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 31 Mar 2005 16:37:10 +0000 (16:37 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 31 Mar 2005 16:37:10 +0000 (16:37 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9768 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/ChangeLog
src/tex2lyx/text.C

index 9d091be9ae31feb1b9e675e116d58b6dd956f368..1bd8352004c903abe8964a97cee5ae6cc386f27a 100644 (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
index d006f51f5a2074e1a5ceb84af3330a2274ab93af..2d158559babcb097c5436e7dfd556a360eb79293 100644 (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.