Fix subsection not being reset to 1 to a new section

This commit is contained in:
Thomas Karpiniec 2016-01-23 08:42:27 +11:00
parent 70b546bcee
commit c1608faec0

View File

@ -77,6 +77,7 @@ function render_with_config_path($config_file) {
if ($types[$i] == "SECTION") {
$tag = "h2";
$section_no++;
$subsection_no = 0;
$number = "$page_no.$section_no.";
}
if ($types[$i] == "SUBSECTION") {