odocstringstream ods;
XHTMLStream xs(ods);
- if (getCmdName() == "tableofcontents") {
+ string const & cmdname = getCmdName();
+ if (cmdname == "tableofcontents") {
Toc const & toc = buffer().tocBackend().toc("tableofcontents");
if (toc.empty())
return docstring();
xs << StartTag("div", "class='toc'");
-
xs << StartTag("div", tocattr)
<< _("Table of Contents")
<< EndTag("div");
/// Used to insert table of contents and similar lists
+/// at present, supports only \tableofcontents. Other
+/// such commands, such as \listoffigures, are supported
+/// by InsetFloatList.
class InsetTOC : public InsetCommand {
public:
///