From 621ea9c5c70687758ec0beb5c4da02e2d6538830 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Wed, 18 May 2005 07:21:00 +0000 Subject: [PATCH] fix tex2lyx comment handling git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9950 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/tex2lyx/ChangeLog | 4 ++++ src/tex2lyx/text.C | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tex2lyx/ChangeLog b/src/tex2lyx/ChangeLog index 1f6c109f95..5d5633e1ee 100644 --- a/src/tex2lyx/ChangeLog +++ b/src/tex2lyx/ChangeLog @@ -1,3 +1,7 @@ +2005-04-18 Georg Baum + + * text.C (parse_comment): Don't start a new paragraph for "%\n" + 2005-04-13 Georg Baum * text.C (normalize_filename): new, split off from parse_text diff --git a/src/tex2lyx/text.C b/src/tex2lyx/text.C index 5586764516..3187986cbd 100644 --- a/src/tex2lyx/text.C +++ b/src/tex2lyx/text.C @@ -789,12 +789,13 @@ void parse_environment(Parser & p, ostream & os, bool outer, p.skip_spaces(); } + /// parses a comment and outputs it to \p os. void parse_comment(Parser & p, ostream & os, Token const & t, Context & context) { BOOST_ASSERT(t.cat() == catComment); - context.check_layout(os); if (!t.cs().empty()) { + context.check_layout(os); handle_comment(os, '%' + t.cs(), context); if (p.next_token().cat() == catNewline) { // A newline after a comment line starts a new -- 2.39.2