mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-28 04:17:43 +00:00
tex2lyx: clear latexparam after use.
This commit is contained in:
parent
79728dcde9
commit
7e3a41bd15
@ -786,7 +786,7 @@ void output_arguments(ostream & os, Parser & p, bool outer, bool need_layout, st
|
|||||||
rdelim = "}";
|
rdelim = "}";
|
||||||
p.get_token(); // eat ldelim
|
p.get_token(); // eat ldelim
|
||||||
if (ldelim.size() > 1)
|
if (ldelim.size() > 1)
|
||||||
p.get_token(); // eat ldelim
|
p.get_token(); // eat ldelim
|
||||||
if (need_layout) {
|
if (need_layout) {
|
||||||
context.check_layout(os);
|
context.check_layout(os);
|
||||||
need_layout = false;
|
need_layout = false;
|
||||||
@ -812,7 +812,7 @@ void output_arguments(ostream & os, Parser & p, bool outer, bool need_layout, st
|
|||||||
continue;
|
continue;
|
||||||
p.get_token(); // eat ldelim
|
p.get_token(); // eat ldelim
|
||||||
if (ldelim.size() > 1)
|
if (ldelim.size() > 1)
|
||||||
p.get_token(); // eat ldelim
|
p.get_token(); // eat ldelim
|
||||||
if (need_layout) {
|
if (need_layout) {
|
||||||
context.check_layout(os);
|
context.check_layout(os);
|
||||||
need_layout = false;
|
need_layout = false;
|
||||||
@ -3307,6 +3307,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
|
|||||||
context.latexparam = newlayout->latexparam();
|
context.latexparam = newlayout->latexparam();
|
||||||
// write the layout
|
// write the layout
|
||||||
output_command_layout(os, p, outer, context, newlayout);
|
output_command_layout(os, p, outer, context, newlayout);
|
||||||
|
context.latexparam.clear();
|
||||||
p.skip_spaces();
|
p.skip_spaces();
|
||||||
if (!preamble.titleLayoutFound())
|
if (!preamble.titleLayoutFound())
|
||||||
preamble.titleLayoutFound(newlayout->intitle);
|
preamble.titleLayoutFound(newlayout->intitle);
|
||||||
@ -5506,6 +5507,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
|
|||||||
output_ert(os, arg, newcontext);
|
output_ert(os, arg, newcontext);
|
||||||
} else
|
} else
|
||||||
parse_text_in_inset(p, os, FLAG_ITEM, false, context, newinsetlayout);
|
parse_text_in_inset(p, os, FLAG_ITEM, false, context, newinsetlayout);
|
||||||
|
context.latexparam.clear();
|
||||||
if (caption)
|
if (caption)
|
||||||
p.skip_spaces();
|
p.skip_spaces();
|
||||||
// Minted caption insets are not closed here because
|
// Minted caption insets are not closed here because
|
||||||
|
Loading…
Reference in New Issue
Block a user