The above code appends an unnecessary slash after a backslash, too, confusing code further on. The end result is there's no TOC displayed for many ePubs (where the content is zipped in the root, without subfolders). Solution: watch out for backslash too, not just forwardslash.
|