From c1608faec099126c9f2bac508f40404cfc8bbd9b Mon Sep 17 00:00:00 2001 From: Thomas Karpiniec Date: Sat, 23 Jan 2016 08:42:27 +1100 Subject: [PATCH] Fix subsection not being reset to 1 to a new section --- render.php | 1 + 1 file changed, 1 insertion(+) diff --git a/render.php b/render.php index 9ec14aa..d29b0a8 100644 --- a/render.php +++ b/render.php @@ -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") {