Ch. ' + str(levelNums[level]) + ': ' + header['title'] + '
\n' elif level == 2: toc = toc + '\t\t\n' elif level == 3: toc = toc + '\n' elif level == 4: toc = toc + '\n' # Make the 'this thing contains...' stuff if HaveChildren(fileStruct, pageNumber): pages = GetChildren(fileStruct, pageNumber) for pg in pages: more = more + '