X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetListings.cpp;h=bec33b12cb44ee86ce28d927a1757a21a34cb99d;hb=239b9919ffe28338d789e6dc9122228f77ab77a7;hp=a92c09525c9f0dc8616b4d551e7fa6fc40817e7b;hpb=e798db5739871aaa29f95de321c52f19058064c9;p=lyx.git diff --git a/src/insets/InsetListings.cpp b/src/insets/InsetListings.cpp index a92c09525c..bec33b12cb 100644 --- a/src/insets/InsetListings.cpp +++ b/src/insets/InsetListings.cpp @@ -158,8 +158,20 @@ void InsetListings::latex(otexstream & os, OutputParams const & runparams) const if (i == 0 && par->isInset(i) && i + 1 == siz) captionline = true; // ignore all struck out text and (caption) insets - if (par->isDeleted(i) || par->isInset(i)) + if (par->isDeleted(i) + || (par->isInset(i) && par->getInset(i)->lyxCode() == CAPTION_CODE)) continue; + if (par->isInset(i)) { + // Currently, this can only be a quote inset + // that is output as plain quote here, but + // we use more generic code anyway. + otexstringstream ots; + OutputParams rp = runparams; + rp.pass_thru = true; + par->getInset(i)->latex(ots, rp); + code += ots.str(); + continue; + } char_type c = par->getChar(i); // we can only output characters covered by the current // encoding!