mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
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:
parent
dc4e9f102a
commit
2f728e45f8
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user