Remove the test for "tableofcontents", since that is the only thing this

inset supports right now.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32999 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-01-12 20:25:33 +00:00
parent dc4e9f102a
commit 2f728e45f8

View File

@ -85,8 +85,6 @@ docstring InsetTOC::xhtml(XHTMLStream &, OutputParams const & op) const
odocstringstream ods;
XHTMLStream xs(ods);
string const & cmdname = getCmdName();
if (cmdname == "tableofcontents") {
Toc const & toc = buffer().tocBackend().toc("tableofcontents");
if (toc.empty())
return docstring();
@ -144,7 +142,6 @@ docstring InsetTOC::xhtml(XHTMLStream &, OutputParams const & op) const
for (int i = lastdepth; i > 0; --i)
xs << EndTag("div");
xs << EndTag("div");
}
return ods.str();
}