From bd77d8ad61e6e4b066a3dc7b530b7467d7a8b690 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 17 Mar 2018 18:26:47 +0100 Subject: [PATCH] small fixup in tex2lyx lstlistings/inputminted support. --- src/tex2lyx/text.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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\""; -- 2.39.2