It stops working at 3.7 because your document doesn't have a 3.6 heading before it. The preceding heading is 3.5. The (very elegant) code is comparing the expected numbers with the hard coded numbers and if the pattern a match is not identified then it leaves it as is.
Once the expected numbers are broken, it won't start working again until you get to the next parent Heading level.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|