From 3366c49f80b6229e3a1f7f783456c672b45d0f60 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 17 Mar 2018 18:28:54 +0100 Subject: [PATCH] strip braces from minted caption --- src/insets/InsetInclude.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/insets/InsetInclude.cpp b/src/insets/InsetInclude.cpp index da2cd80bc8..d7095cc80f 100644 --- a/src/insets/InsetInclude.cpp +++ b/src/insets/InsetInclude.cpp @@ -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)