id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
5,Skip over headers appearing in wiki-escaped blocks,Steven N. Severinghaus <sns@severinghaus.org>,athomas,For example_ the header example on the WikiFormatting page confuses the parser. I have a fix but don't have any great way to communicate it. (I'd supply a diff_ but I've already made some unrelated changes which would obscure the relevant changes.) Below is what the relevant portion of my version of TOC.py looks like:\r\n\r\n{{{\r\ndef parse_toc(env_ out_ page_ body):\r\n    depth = 1\r\n    in_example = False\r\n    for line in body.splitlines():\r\n        line = escape(line)\r\n\r\n        # Skip over wiki-escaped code_ e.g. code examples\r\n        if in_example:\r\n            if line == '}}}':\r\n                in_example = False\r\n            else:\r\n                continue\r\n        if line == '{{{':\r\n            in_example = True\r\n            continue\r\n\r\n        # If we're not in an example block_ check for list stuff\r\n        match = rules.match(line)\r\n        if match:\r\n}}}\r\n\r\nYou'll recognize the top couple of lines and the bottom couple of lines_ beyond which there were no changes. This bit of code fixes the problem on the WikiFormatting page's TOC without any obvious negative side-effects.\r\n\r\nI hope this was an appropriate way of communicating the problem!,defect,closed,normal,TocMacro,minor,fixed,toc macro code example bug,sns@severinghaus.org,
