Modify ↓
#1751 closed enhancement (fixed)
Support of mailto: link
Reported by: | Owned by: | anonymous | |
---|---|---|---|
Priority: | normal | Milestone: | 0.9 |
Component: | wiki system | Version: | devel |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
This is patch (2nd chunk) to support mailto: link like [mailto:gotoh@taiyo.co.jp My Name]
which can be used in earlier version and lost in svn head.
And also patch (1st chunk) to treat mailto:xxxx in text as URL.
Index: formatter.py =================================================================== --- formatter.py (revision 1886) +++ formatter.py (working copy) @@ -265,7 +265,7 @@ if ns in self.link_resolvers: return self._link_resolvers[ns](self, ns, target, match) - elif target[:2] == '//': + elif target[:2] == '//' or ns == 'mailto': return self._make_ext_link(match, match) else: return match @@ -276,7 +276,7 @@ label = fullmatch.group('label') if ns in self.link_resolvers: return self._link_resolvers[ns](self, ns, target, label) - elif target[:2] == '//': + elif target[:2] == '//' or ns == 'mailto': return self._make_ext_link(ns+':'+target, label) else: return match
Attachments (0)
Change History (4)
comment:1 by , 19 years ago
Milestone: | → 0.9 |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:4 by , 10 years ago
Please ask on the MailingList. One possibility is that the link is not rendered due to settings and permissions in your Trac instance.
Note:
See TracTickets
for help on using tickets.
Implemented in the InterTrac branch (r1894)