mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
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:
parent
0bc125e92b
commit
621ea9c5c7
@ -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>
|
2005-04-13 Georg Baum <Georg.Baum@post.rwth-aachen.de>
|
||||||
|
|
||||||
* text.C (normalize_filename): new, split off from parse_text
|
* text.C (normalize_filename): new, split off from parse_text
|
||||||
|
@ -789,12 +789,13 @@ void parse_environment(Parser & p, ostream & os, bool outer,
|
|||||||
p.skip_spaces();
|
p.skip_spaces();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// parses a comment and outputs it to \p os.
|
/// parses a comment and outputs it to \p os.
|
||||||
void parse_comment(Parser & p, ostream & os, Token const & t, Context & context)
|
void parse_comment(Parser & p, ostream & os, Token const & t, Context & context)
|
||||||
{
|
{
|
||||||
BOOST_ASSERT(t.cat() == catComment);
|
BOOST_ASSERT(t.cat() == catComment);
|
||||||
context.check_layout(os);
|
|
||||||
if (!t.cs().empty()) {
|
if (!t.cs().empty()) {
|
||||||
|
context.check_layout(os);
|
||||||
handle_comment(os, '%' + t.cs(), context);
|
handle_comment(os, '%' + t.cs(), context);
|
||||||
if (p.next_token().cat() == catNewline) {
|
if (p.next_token().cat() == catNewline) {
|
||||||
// A newline after a comment line starts a new
|
// A newline after a comment line starts a new
|
||||||
|
Loading…
Reference in New Issue
Block a user