mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-12 16:50:39 +00:00
Fix bug 3052
* src/tex2lyx/text.C (parse_noweb): Always start a new paragraph after a noweb code chunk git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@17486 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3b6fe1d579
commit
f138685953
@ -1048,7 +1048,13 @@ void parse_noweb(Parser & p, ostream & os, Context & context)
|
||||
return;
|
||||
}
|
||||
|
||||
context.check_end_layout(os);
|
||||
// We use new_paragraph instead of check_end_layout because the stuff
|
||||
// following the noweb chunk needs to start with a \begin_layout.
|
||||
// This may create a new paragraph even if there was none in the
|
||||
// noweb file, but the alternative is an invalid LyX file. Since
|
||||
// noweb code chunks are implemented with a layout style in LyX they
|
||||
// always must be in an own paragraph.
|
||||
context.new_paragraph(os);
|
||||
Context newcontext(true, context.textclass, context.textclass["Scrap"]);
|
||||
newcontext.check_layout(os);
|
||||
os << name;
|
||||
|
@ -35,6 +35,8 @@ What's new
|
||||
|
||||
* DOCUMENT INPUT/OUTPUT
|
||||
|
||||
- Don't skip lines after noweb chunks in tex2lyx (bug 3052)
|
||||
|
||||
|
||||
* USER INTERFACE:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user