|
Lukas Theussl made changes - 07/May/09 05:48 AM
Re-opening as this should really be counted as a bug in Doxia 1.0 and not a regression IMO. The problem is actually with the section counting, not the depth. Eg site-plugin-2.0 generates two different tocs for the following: %{toc|section=1|fromDepth=1|toDepth=1}
%{toc|section=2|fromDepth=1|toDepth=1}
Section 1
* Sub-section 1.1
* Sub-section 1.2
Section 2
* Sub-section 2.1
* Sub-section 2.2
The toc for section 1 contains the two sub-sections, while the one for section 2 contains only the section. Now I think that the current behavior of doxia 1.1 is correct, and consistent with the docs, but the problem is backward compatibility. All pages that contain a toc for a first section will be broken. So the question is: to fix or not to fix?
Lukas Theussl made changes - 08/May/09 03:26 AM
Lukas Theussl made changes - 08/May/09 03:27 AM
Lukas Theussl made changes - 11/May/09 06:52 AM
Fixed. Depth=1 is section, depth=2 is sub-section, etc, as documented.
Lukas Theussl made changes - 11/May/09 06:56 AM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fixed in r772599
.