From 25c5cb60385cf41fb6ae93066d3d8379be168908 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 11 Aug 2012 17:35:22 -0400 Subject: Add chapter numbers to section numbers. --- (limited to 'scripts') 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'}}, -- cgit v0.9.1