Modify ↓
#13497 closed defect (fixed)
Symbol markup cannot be escaped
| Reported by: | Ryan J Ollos | Owned by: | Jun Omae |
|---|---|---|---|
| Priority: | normal | Component: | WikiExtrasPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: |
Description
See TracDev/Proposals/VerticalHorizontalParsing@4.
The transformation of (C) to the copyright symbol can't be escaped using !(C).
Attachments (0)
Change History (4)
comment:1 Changed 7 years ago by
comment:2 Changed 7 years ago by
Thanks. If you can commit the change, I will go ahead and update the plugin on t.e.o.
comment:4 Changed 7 years ago by
| Owner: | changed from Mikael Relbe to Jun Omae |
|---|
Note: See
TracTickets for help on using
tickets.



The result of
prepare_regexpshould be enclosed with(?:and)but missing parentheses in tracwikiextras/symbols.py.$ git grep 'prepare_regexp(' -- '*.py' tracwikiextras/icons.py: yield (r"(?<!\w)!?(?:%s)" % prepare_regexp(self.smileys), tracwikiextras/phrases.py: yield ('!?(?:%s)' % prepare_regexp(self.text), self._format_phrase) tracwikiextras/symbols.py: yield ('!?%s' % prepare_regexp(self.symbols), self._format_symbol) tracwikiextras/util.py:def prepare_regexp(d):wikiextrasplugin/trunk/tracwikiextras/symbols.py