mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
Output cosmetics, mostly. Get the newlines better.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29962 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
47b796d41f
commit
a3915db54f
@ -2413,6 +2413,8 @@ void Paragraph::simpleLyXHTMLOnePar(Buffer const & buf,
|
||||
i += 1;
|
||||
}
|
||||
}
|
||||
else
|
||||
os << c;
|
||||
} else
|
||||
os << html::escapeChar(c);
|
||||
}
|
||||
|
@ -201,9 +201,10 @@ ParagraphList::const_iterator makeParagraphs(Buffer const & buf,
|
||||
bool const opened = openTag(os, lay);
|
||||
par->simpleLyXHTMLOnePar(buf, os, runparams,
|
||||
outerFont(distance(paragraphs.begin(), par), paragraphs));
|
||||
if (opened)
|
||||
if (opened) {
|
||||
closeTag(os, lay);
|
||||
os << '\n';
|
||||
os << '\n';
|
||||
}
|
||||
}
|
||||
return pend;
|
||||
}
|
||||
@ -338,6 +339,7 @@ void makeCommand(Buffer const & buf,
|
||||
outerFont(distance(paragraphs.begin(), pbegin), paragraphs));
|
||||
if (main_tag_opened)
|
||||
closeTag(os, style);
|
||||
os << '\n';
|
||||
}
|
||||
|
||||
} // end anonymous namespace
|
||||
@ -377,7 +379,6 @@ void xhtmlParagraphs(ParagraphList const & paragraphs,
|
||||
default:
|
||||
break;
|
||||
}
|
||||
os << '\n';
|
||||
// makeEnvironment may process more than one paragraphs and bypass pend
|
||||
if (distance(lastpar, par) >= distance(lastpar, pend))
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user