Changeset 9586 generates unwanted links on Trac 0.12
|Reported by:||AllenB||Owned by:||rjollos|
The recent changes made in r9586 are causing Trac 0.12 to turn all acronyms into links.
For example, I have the following defined in my AcronymDefinitions:
||'''Acronym'''||'''Description'''|| ||ROM||Read-Only Memory||
When I use the text Acronym test ROM. on a wiki page, the following HTML is generated:
Acronym test <a class="acronym" href="/MyProject/wiki/"><acronym title="Read-Only Memory">ROM</acronym></a>.
If I comment out lines 62-63 of acronyms.py (the lines added in r9586), then the resulting HTML code is as expected:
Acronym test <acronym title="Read-Only Memory">ROM</acronym>.
I suspect that this is due to the templating differences between 0.11 and 0.12, as 'href' is of type 'genshi._speedups.Markup' at line 61 (which causes the conditional on line 62 to always evaluate true).
I know Trac 0.12 isn't listed as being 'officially' supported by this plugin, but this bug seems to be the only thing keeping it from working so I figured I'd report it.