I had a toc file that missed opening tocitem statements at the beginning of the file (see example below). This pull-request fixes that issue and also simplifies the code. However, I believe there are still issues with GenerateTocXml.m that were not in GenerateTocXml_old.m. My config contained a quite large toc structure with empty folders and entries (for files which I later added through another script). GenerateTocXml.m seems to ignore theses structures.
Also, I think the toc structure defined in the config should not be sorted, only the auto-generated entries. This is currently also not done.
Start of the incorrect helptoc.xml file. (The last two lines in this excerpt are correct, as is everything afterwards.)
I had a toc file that missed opening tocitem statements at the beginning of the file (see example below). This pull-request fixes that issue and also simplifies the code. However, I believe there are still issues with
GenerateTocXml.m
that were not inGenerateTocXml_old.m
. My config contained a quite large toc structure with empty folders and entries (for files which I later added through another script).GenerateTocXml.m
seems to ignore theses structures.Also, I think the toc structure defined in the config should not be sorted, only the auto-generated entries. This is currently also not done.
Start of the incorrect helptoc.xml file. (The last two lines in this excerpt are correct, as is everything afterwards.)