]> git.lyx.org Git - features.git/commitdiff
strip braces from minted caption
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 17 Mar 2018 17:28:54 +0000 (18:28 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 17 Mar 2018 17:28:54 +0000 (18:28 +0100)
src/insets/InsetInclude.cpp

index da2cd80bc8b147e0ccb207462ab17c79c53c7b90..d7095cc80f2584ee46ee9a8341b1078d36e000a7 100644 (file)
@@ -632,7 +632,7 @@ void InsetInclude::latex(otexstream & os, OutputParams const & runparams) const
                                language = opts[i].substr(9);
                                opts.erase(opts.begin() + i--);
                        } else if (prefixIs(opts[i], from_ascii("caption="))) {
-                               caption = params().prepareCommand(runparams, opts[i].substr(8),
+                               caption = params().prepareCommand(runparams, trim(opts[i].substr(8), "{}"),
                                                                  ParamInfo::HANDLING_LATEXIFY);
                                opts.erase(opts.begin() + i--);
                                if (!use_minted)