From: Juergen Spitzmueller Date: Sat, 17 Mar 2018 17:26:47 +0000 (+0100) Subject: small fixup in tex2lyx lstlistings/inputminted support. X-Git-Tag: lyx-2.4.0dev-acb2ca7b~3688 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=bd77d8ad61e6e4b066a3dc7b530b7467d7a8b690;p=features.git small fixup in tex2lyx lstlistings/inputminted support. --- diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index 3916fd3880..68148cb846 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -4801,6 +4801,8 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer, literal = !oa.first; if (literal) lstparams = subst(lstparams, "\n", " "); + else + lstparams = oa.second; } else if (name == "inputminted") { name = "lstinputlisting"; string const lang = p.getArg('{', '}'); @@ -4833,6 +4835,8 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer, literal = !oa.first; if (literal) lstparams = subst(lstparams, "\n", " "); + else + lstparams = oa.second; } } string lit = literal ? "\"true\"" : "\"false\"";