]> git.lyx.org Git - features.git/commitdiff
small fixup in tex2lyx lstlistings/inputminted support.
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 17 Mar 2018 17:26:47 +0000 (18:26 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 17 Mar 2018 17:26:47 +0000 (18:26 +0100)
src/tex2lyx/text.cpp

index 3916fd3880faae1d9165e5859bce50a3615f693d..68148cb8466f4436c6f24b578bd3206e26f24cba 100644 (file)
@@ -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\"";