]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTOC.cpp
Fix use of std::regex_match
[lyx.git] / src / insets / InsetTOC.cpp
index c700e57640a97f26d1d51dbc43edbea2b0014824..4469b88939d72b9d259b86a600f110032d7e9e48 100644 (file)
@@ -128,11 +128,10 @@ int InsetTOC::plaintext(odocstringstream & os,
 }
 
 
-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;
 }