Changeset 3284
- Timestamp:
- 02/28/08 03:36:33 (11 months ago)
- Files:
-
- fullblogplugin/0.11/tracfullblog/core.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
fullblogplugin/0.11/tracfullblog/core.py
r3283 r3284 123 123 # Assume it is a regular post, and pass to 'view' 124 124 # Split for comment linking (the_post#comment-1, or #comment-1) 125 url, anchor = unicode_unquote(content).split('#') 125 segments = unicode_unquote(content).split('#') 126 if len(segments) == 2: 127 url, anchor = segments 128 else: 129 url = segments[0] 130 anchor = '' 126 131 return tag.a(label, href=(url and formatter.href.blog(url) or '') \ 127 132 + (anchor and '#' + anchor or ''))
