]> git.lyx.org Git - features.git/commitdiff
fix tex2lyx comment handling
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Wed, 18 May 2005 07:21:00 +0000 (07:21 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Wed, 18 May 2005 07:21:00 +0000 (07:21 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9950 a592a061-630c-0410-9148-cb99ea01b6c8

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

index 1f6c109f95832d4f8e9c608eeb7157b3845e6dab..5d5633e1ee5ca5565e7b16291b2e89861e4ea8a1 100644 (file)
@@ -1,3 +1,7 @@
+2005-04-18  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
+
+       * text.C (parse_comment): Don't start a new paragraph for "%\n"
+
 2005-04-13  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
 
        * text.C (normalize_filename): new, split off from parse_text
index 558676451623e317195edeeb4b0194294759d613..3187986cbda4803b34e8dbb1df587b265bedf7a6 100644 (file)
@@ -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