mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
small fixup in tex2lyx lstlistings/inputminted support.
This commit is contained in:
parent
f3c5bcd2be
commit
bd77d8ad61
@ -4801,6 +4801,8 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
|
|||||||
literal = !oa.first;
|
literal = !oa.first;
|
||||||
if (literal)
|
if (literal)
|
||||||
lstparams = subst(lstparams, "\n", " ");
|
lstparams = subst(lstparams, "\n", " ");
|
||||||
|
else
|
||||||
|
lstparams = oa.second;
|
||||||
} else if (name == "inputminted") {
|
} else if (name == "inputminted") {
|
||||||
name = "lstinputlisting";
|
name = "lstinputlisting";
|
||||||
string const lang = p.getArg('{', '}');
|
string const lang = p.getArg('{', '}');
|
||||||
@ -4833,6 +4835,8 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
|
|||||||
literal = !oa.first;
|
literal = !oa.first;
|
||||||
if (literal)
|
if (literal)
|
||||||
lstparams = subst(lstparams, "\n", " ");
|
lstparams = subst(lstparams, "\n", " ");
|
||||||
|
else
|
||||||
|
lstparams = oa.second;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
string lit = literal ? "\"true\"" : "\"false\"";
|
string lit = literal ? "\"true\"" : "\"false\"";
|
||||||
|
Loading…
Reference in New Issue
Block a user