Fixed issue with TOC generation of documents with non-consecutively increasing headings, e.g. h1, h4, h6

TOC list indentation now properly reflects actual heading sequence