if (isInline)
out << html::CompTag("br");
else {
- out << html::StartTag("div", "class='float float-listings'");
+ out << html::StartTag("div", "class='float-listings'");
docstring caption = getCaptionHTML(rp);
if (!caption.empty())
- out << html::StartTag("div", "class='float-caption'")
+ out << html::StartTag("div", "class='listings-caption'")
<< XHTMLStream::ESCAPE_NONE
<< caption << html::EndTag("div");
}
void InsetListings::validate(LaTeXFeatures & features) const
{
features.require("listings");
+ features.useInsetLayout(getLayout());
string param_string = params().params();
if (param_string.find("\\color") != string::npos)
features.require("color");