summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-08-11 17:35:22 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-08-11 17:35:22 (EDT)
commit25c5cb60385cf41fb6ae93066d3d8379be168908 (patch)
tree40ff18121faab517ee176650a31150045f6be5d6 /scripts
parent1c131dcd79d287911dfa3b7f6fb5fc8e7d0fa4ba (diff)
Add chapter numbers to section numbers.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/MarkdownBook/Document/HTML.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/MarkdownBook/Document/HTML.pm b/scripts/MarkdownBook/Document/HTML.pm
index e775327..aabb0dd 100644
--- a/scripts/MarkdownBook/Document/HTML.pm
+++ b/scripts/MarkdownBook/Document/HTML.pm
@@ -56,6 +56,7 @@ sub parse
$curlev = $newlev;
++$secnums[$newlev - 1];
$secstr = join('.', @secnums);
+ $secstr = $self->{'id'} . '.' . $secstr;
$secstr =~ s/(\.0)*$//;
push(@{$self->{'sections'}},