Modify ↓
Ticket #1751 (closed enhancement: fixed)
Opened 7 years ago
Last modified 7 years ago
Support of mailto: link
| Reported by: | Shun-ichi Goto <gotoh@…> | Owned by: | anonymous |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.9 |
| Component: | wiki system | Version: | devel |
| Severity: | normal | Keywords: | |
| Cc: | |||
| Release Notes: | |||
| API 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
Change History
comment:1 Changed 7 years ago by anonymous
- Milestone set to 0.9
- Owner changed from jonas to anonymous
- Status changed from new to assigned
comment:2 Changed 7 years ago by jonas
- Resolution set to fixed
- Status changed from assigned to closed
Fixed in [1936].
Note: See
TracTickets for help on using
tickets.



Implemented in the InterTrac branch (r1894)