id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
9157	ValueError: Cannot process flags argument with a compiled pattern (when displaying markdown)	peerst	dwclifton	Just installed the extension and when trying it out (with a ticket that contains the example on the MarkdownMacro page I get the following error:\r\n\r\n{{{\r\n\r\nFile "/var/tmp/trac-test/egg-cache/Trac-0.12.2-py2.7.egg-tmp/trac/ticket/templates/ticket_box.html", line 77, in <Expression u'wiki_to_html(context, ticket.description, escape_newlines=preserve_newlines)'>\r\n  ${wiki_to_html(context, ticket.description, escape_newlines=preserve_newlines)}\r\nFile "build/bdist.freebsd-8.2-RELEASE-amd64/egg/trac/wiki/formatter.py", line 1497, in format_to_html\r\n  return HtmlFormatter(env, context, wikidom).generate(escape_newlines)\r\nFile "build/bdist.freebsd-8.2-RELEASE-amd64/egg/trac/wiki/formatter.py", line 1452, in generate\r\n  escape_newlines)\r\nFile "build/bdist.freebsd-8.2-RELEASE-amd64/egg/trac/wiki/formatter.py", line 1201, in format\r\n  self.handle_code_block(line, block_start_match)\r\nFile "build/bdist.freebsd-8.2-RELEASE-amd64/egg/trac/wiki/formatter.py", line 1091, in handle_code_block\r\n  processed = self.code_processor.process(code_text)\r\nFile "build/bdist.freebsd-8.2-RELEASE-amd64/egg/trac/wiki/formatter.py", line 304, in process\r\n  text = self.processor(text)\r\nFile "build/bdist.freebsd-8.2-RELEASE-amd64/egg/trac/wiki/formatter.py", line 291, in _macro_processor\r\n  text)\r\nFile "build/bdist.freebsd-8.2-RELEASE-amd64/egg/Markdown/macro.py", line 60, in expand_macro\r\n  return markdown(sub(LINK, convert, content))\r\nFile "/usr/local/lib/python2.7/re.py", line 151, in sub\r\n  return _compile(pattern, flags).sub(repl, string, count)\r\nFile "build/bdist.freebsd-8.2-RELEASE-amd64/egg/Markdown/macro.py", line 51, in convert\r\n  I).groups()[0]\r\nFile "/usr/local/lib/python2.7/re.py", line 142, in search\r\n  return _compile(pattern, flags).search(string)\r\nFile "/usr/local/lib/python2.7/re.py", line 237, in _compile\r\n  raise ValueError('Cannot process flags argument with a compiled pat\r\n\r\nSystem Information:\r\n\r\nUser Agent: Mozilla/5.0 (Macintosh; PPC Mac OS X 10_5_8) AppleWebKit/534.50.2 (KHTML, like Gecko) Version/5.0.6 Safari/533.22.3\r\n\r\nTrac_0.12.2\r\nBabel_0.9.6\r\nDocutils_0.8\r\nGenshi_0.6\r\nMercurial_1.9.1\r\nPygments_1.4\r\npysqlite_2.6.0\r\nPython_2.7.2 (default, Sep 2 2011, 10:31:59) [GCC 4.2.1 20070719 [FreeBSD]]\r\npytz_2011g\r\nsetuptools_0.6c11\r\nSilverCity_0.9.7\r\nSQLite_3.7.7.1\r\njQuery_1.4.2\r\nEnabled Plugins:\r\n\r\nTracMarkdownMacro_0.11.1_/var/tmp/trac-test/plugins/TracMarkdownMacro-0.11.1-py2.7.egg\r\nTracMercurial_0.12.0.28dev-r10784_/var/tmp/trac-test/plugins/TracMercurial-0.12.0.28dev_r10784-py2.7.egg\r\n\r\n}}}\r\n\r\n	defect	closed	normal	MarkdownMacro	normal	fixed		hasienda	0.12
