// optional argument.
runparams.moving_arg = !runparams.inTableCell;
InsetText::latex(os, runparams);
+ // Backwards compatibility: We always had a linebreak after
+ // the caption (see #8514)
+ os << breakln;
runparams_in.encoding = runparams.encoding;
}
string const our_class = "float-caption-" + type_;
size_t const loc = attr.find("class='");
if (loc != string::npos)
- attr.insert(loc + 1, our_class);
+ attr.insert(loc + 7, our_class+ " ");
+ else
+ attr = attr + " class='" + our_class + "'";
}
xs << html::StartTag(tag, attr);
docstring def = getCaptionAsHTML(xs, rp);