mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
docbook exports: Omit crashing export on some files
Committed since Thibaut apparently has no time to react, and the crash is really distracting.
This commit is contained in:
parent
5791b8bff8
commit
9b7db11901
@ -176,8 +176,16 @@ void InsetNewline::docbook(XMLStream & xs, OutputParams const & runparams) const
|
||||
{
|
||||
if (runparams.docbook_in_par) {
|
||||
xs.closeFontTags();
|
||||
xs << xml::EndTag("para");
|
||||
xs << xml::StartTag("para");
|
||||
if (!xs.pending_tags_empty()) {
|
||||
xs << xml::EndTag("para");
|
||||
xs << xml::StartTag("para");
|
||||
}
|
||||
else {
|
||||
xs << xml::CR() << xml::CompTag("br") << xml::CR();
|
||||
}
|
||||
}
|
||||
else {
|
||||
xs << xml::CR() << xml::CompTag("br") << xml::CR();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user