id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
10278	Plugin found to be working on 1.0rc1 - but needs a patch for python2.6	sdegrande	rjollos	This plugin works on 1.0, but a patch is needed for python 2.6, as the one proposed in #9157, or the following one:\r\n\r\n{{{\r\n#!diff\r\ndiff -r ec2c58e517b9 markdownmacro/0.11/Markdown/macro.py\r\n--- a/markdownmacro/0.11/Markdown/macro.py_Sat Aug 11 22:09:49 2012 +0000\r\n+++ b/markdownmacro/0.11/Markdown/macro.py_Wed Sep 05 12:39:28 2012 +0200\r\n@@ -27,7 +27,7 @@\r\n LINK = compile(\r\n     r'(\\]\\()([^) ]+)([^)]*\\))|(<)([^>]+)(>)|(\\n\\[[^]]+\\]: *)([^ \\n]+)(.*\\n)'\r\n )\r\n-HREF = compile(r'href=[\\'"]?([^\\'" ]*)')\r\n+HREF = compile(r'href=[\\'"]?([^\\'" ]*)', I)\r\n \r\n __all__ = ['MarkdownMacro']\r\n \r\n@@ -47,8 +47,7 @@\r\n             f.format(target, out)\r\n             url = search(\r\n                     HREF,\r\n-                    out.getvalue(),\r\n-                    I).groups()[0]\r\n+                    out.getvalue()).groups()[0]\r\n             # Trac creates relative links, which Markdown won't touch inside\r\n             # <autolinks> because they look like HTML\r\n             if pre == '<' and url != target:\r\n}}}\r\n\r\nI do not know python's internals, so I don't know which one is the more efficient.\r\nI suppose that such a patch is compatible with other 2.x versions of python, but I was not able to check.\r\n	defect	closed	normal	MarkdownMacro	normal	fixed	compatibility		1.0
