mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
strip braces from minted caption
This commit is contained in:
parent
bd77d8ad61
commit
3366c49f80
@ -632,7 +632,7 @@ void InsetInclude::latex(otexstream & os, OutputParams const & runparams) const
|
|||||||
language = opts[i].substr(9);
|
language = opts[i].substr(9);
|
||||||
opts.erase(opts.begin() + i--);
|
opts.erase(opts.begin() + i--);
|
||||||
} else if (prefixIs(opts[i], from_ascii("caption="))) {
|
} 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);
|
ParamInfo::HANDLING_LATEXIFY);
|
||||||
opts.erase(opts.begin() + i--);
|
opts.erase(opts.begin() + i--);
|
||||||
if (!use_minted)
|
if (!use_minted)
|
||||||
|
Loading…
Reference in New Issue
Block a user