# HG changeset patch # User Peter Kovacs # Date 1266795636 -3600 # Node ID 6df2bf124af45470bb463155d45859f0812122b2 # Parent 73fdafd843d9757e9e602e30d9be50794c45e515 Imporve the titlegen script to correctly handle section numbers that are greater than ten diff -r 73fdafd843d9 -r 6df2bf124af4 scripts/titlegen.py --- a/scripts/titlegen.py Sun Feb 21 19:02:08 2010 +0100 +++ b/scripts/titlegen.py Mon Feb 22 00:40:36 2010 +0100 @@ -5,6 +5,9 @@ import copy import re +max_sec_number=100 +max_sec_depth=4 + def sec_inc(section, lev): while len(section)