mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix bug #8580: Do not include material in the XHTML TOC that is not
also included in the output.
This commit is contained in:
parent
86994bf753
commit
65b74b9a1d
@ -159,6 +159,11 @@ docstring InsetTOC::xhtml(XHTMLStream &, OutputParams const & op) const
|
||||
Toc::const_iterator const en = toc.end();
|
||||
int lastdepth = 0;
|
||||
for (; it != en; ++it) {
|
||||
// do not output entries that are not actually included in the output,
|
||||
// e.g., stuff in non-active branches or notes or whatever.
|
||||
if (!it->isOutput())
|
||||
continue;
|
||||
|
||||
// First, we need to manage increases and decreases of depth
|
||||
int const depth = it->depth();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user