mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 18:24:48 +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;
|
odocstringstream ods;
|
||||||
XHTMLStream xs(ods);
|
XHTMLStream xs(ods);
|
||||||
|
|
||||||
string const & cmdname = getCmdName();
|
|
||||||
if (cmdname == "tableofcontents") {
|
|
||||||
Toc const & toc = buffer().tocBackend().toc("tableofcontents");
|
Toc const & toc = buffer().tocBackend().toc("tableofcontents");
|
||||||
if (toc.empty())
|
if (toc.empty())
|
||||||
return docstring();
|
return docstring();
|
||||||
@ -144,7 +142,6 @@ docstring InsetTOC::xhtml(XHTMLStream &, OutputParams const & op) const
|
|||||||
for (int i = lastdepth; i > 0; --i)
|
for (int i = lastdepth; i > 0; --i)
|
||||||
xs << EndTag("div");
|
xs << EndTag("div");
|
||||||
xs << EndTag("div");
|
xs << EndTag("div");
|
||||||
}
|
|
||||||
return ods.str();
|
return ods.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user