}
-int InsetTOC::docbook(odocstream & os, OutputParams const &) const
+void InsetTOC::docbook(XMLStream &, OutputParams const &) const
{
- if (getCmdName() == "tableofcontents")
- os << "<toc></toc>";
- return 0;
+ // TOC are generated automatically by the DocBook processor.
+ return;
}
continue;
// First, we need to manage increases and decreases of depth
- // If there's no depth to deal with, we artifically set it to 1.
+ // If there's no depth to deal with, we artificially set it to 1.
int const depth = it->depth();
// Ignore stuff above the tocdepth