fix tex2lyx comment handling

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9950 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2005-05-18 07:21:00 +00:00
parent 0bc125e92b
commit 621ea9c5c7
2 changed files with 6 additions and 1 deletions

View 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

View 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