mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-21 17:51:03 +00:00
tex2lyx: do not eat empty paragraphs if keepempty is true
Fixes: #11078
This commit is contained in:
parent
506ae2d2ea
commit
79728dcde9
@ -2099,6 +2099,12 @@ void parse_environment(Parser & p, ostream & os, bool outer,
|
||||
break;
|
||||
}
|
||||
context.check_deeper(os);
|
||||
if (newlayout->keepempty) {
|
||||
// We need to start a new paragraph
|
||||
// even if it is empty.
|
||||
context.new_paragraph(os);
|
||||
context.check_layout(os);
|
||||
}
|
||||
// handle known optional and required arguments
|
||||
if (context.layout->latextype == LATEX_ENVIRONMENT)
|
||||
output_arguments(os, p, outer, false, string(), context,
|
||||
|
Loading…
Reference in New Issue
Block a user