- string const htmltype = ftype.htmlType().empty() ?
- "div" : ftype.htmlType();
- string const htmlclass = ftype.htmlClass().empty() ?
- "float-" + params_.type : ftype.htmlClass();
- docstring const otag =
- from_ascii("<" + htmltype + " class='float " + htmlclass + "'>\n");
- docstring const ctag = from_ascii("</" + htmltype + ">\n");
-
- odocstringstream out;
-
- docstring caption = getCaptionHTML(rp);
- out << otag;
- if (!caption.empty())
- out << "<div class='float-caption'>" << caption << "</div>\n";