Modify ↓
Opened 17 years ago
Closed 17 years ago
#1944 closed defect (duplicate)
Doesn't highlight unless you have a session
Reported by: | Alec Thomas | Owned by: | Matt Good |
---|---|---|---|
Priority: | normal | Component: | TracPygmentsPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
This patch fixed it on TracHacks:
-
__init__.py
old new 130 130 131 131 def post_process_request(self, req, template, content_type): 132 132 if not getattr(req, '_no_pygments_stylesheet', False): 133 if req.session: 134 style = req.session.get('pygments_style', self.default_style) 135 else: 136 style = self.default_style 133 137 add_link(req, 'stylesheet', self.env.href('pygments', '%s.css' % 134 req.session.get('pygments_style', self.default_style)))138 style)) 135 139 return template, content_type 136 140 137 141 # IRequestHandler implementation
Attachments (0)
Change History (3)
comment:1 Changed 17 years ago by
Summary: | Doesn't render unless you have a session → Doesn't highlight unless you have a session |
---|
comment:2 Changed 17 years ago by
comment:3 Changed 17 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
This is a duplicate of #1336.