Modify ↓
Opened 18 years ago
Closed 17 years ago
#1233 closed defect (fixed)
RSS feed does not set title correctly if blog page has leading whitespace
Reported by: | Alec Thomas | Owned by: | John Hampton |
---|---|---|---|
Priority: | low | Component: | TracBlogPlugin |
Severity: | minor | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
If a blog post has whitespace before the first heading, the title regex will not match. This patch works for me, YMMV.
-
blog/web_ui.py
39 39 from tractags.api import TagEngine 40 40 from tractags.parseargs import parseargs 41 41 42 _title_split_match = re.compile(r' ^=+\s+([^\n\r=]+?)\s+=+\s+(.+)$',43 re. DOTALL).match42 _title_split_match = re.compile(r'\s*^=+\s+([^\n\r=]+?)\s+=+\s+(.+)$', 43 re.MULTILINE|re.DOTALL).match 44 44 45 45 BOOLS_TRUE = ['true', 'yes', 'ok', 'on', 'enabled', '1'] 46 46
Attachments (0)
Note: See
TracTickets for help on using
tickets.
Patch applied in [2399]