From 530749439472bddf13d9f4ee74ee6184ef76e3f9 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Thu, 31 Mar 2005 16:37:10 +0000 Subject: [PATCH] Really fix start_of_appendix output git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9768 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/tex2lyx/ChangeLog | 4 ++++ src/tex2lyx/text.C | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/src/tex2lyx/ChangeLog b/src/tex2lyx/ChangeLog index 9d091be9ae..1bd8352004 100644 --- a/src/tex2lyx/ChangeLog +++ b/src/tex2lyx/ChangeLog @@ -1,3 +1,7 @@ +2005-03-31 Georg Baum + + * text.C (parse_text): Really fix \start_of_appendix output + 2005-03-27 Georg Baum * tex2lyx.C (read_syntaxfile): Don't use racy test with IsFileReadable diff --git a/src/tex2lyx/text.C b/src/tex2lyx/text.C index d006f51f5a..2d158559ba 100644 --- a/src/tex2lyx/text.C +++ b/src/tex2lyx/text.C @@ -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. -- 2.39.2