Edgewall Software

Ticket #524: stephen_hansen-wiki_strike.patch

File stephen_hansen-wiki_strike.patch, 925 bytes (added by daniel, 8 years ago)

Add strike syntax to wiki

Line 
1*** /root/trac-0.7/trac/Wiki.py Tue May 18 08:04:52 2004
2--- Wiki.py     Tue Jun  8 08:50:54 2004
3***************
4*** 52,57 ****
5--- 52,58 ----
6      _rules = [r"""(?P<bold>''')""",
7                r"""(?P<italic>'')""",
8                r"""(?P<underline>__)""",
9+               r"""(?P<strike>--)""",
10                r"""(?P<inlinecode>\{\{\{(?P<inline>.*?)\}\}\})""",
11                r"""(?P<htmlescapeentity>&#[0-9]+;)""",
12                r"""(?P<tickethref>#[0-9]+)""",
13***************
14*** 101,106 ****
15--- 102,110 ----
16     
17      def _italic_formatter(self, match, fullmatch):
18          return self.simple_tag_handler('<i>', '</i>')
19+     
20+     def _strike_formatter(self, match, fullmatch):
21+         return self.simple_tag_handler('<strike>', '</strike>')
22 
23      def _underline_formatter(self, match, fullmatch):
24          return self.simple_tag_handler('<span class="underline">', '</span>')