Skip to content

Commit 24e0792

Browse files
author
jomae
committed
1.7.1dev: merge [17881] from 1.6-stable (refs #13864)
git-svn-id: http://trac.edgewall.org/intertrac/log:/trunk@17882 af82e41b-90c4-0310-8c96-b1721e28e2e2
2 parents 10dfc93 + 74073a6 commit 24e0792

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

trac/mimeview/pygments.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ def style_defs(style):
174174
if default_style not in styles:
175175
default_style = 'trac'
176176
selection = req.session.get('pygments_style')
177-
if selection not in styles:
177+
if not selection:
178+
selection = ''
179+
elif selection not in styles:
178180
selection = default_style
179181
output = self._generate('html', self.EXAMPLE)
180182
add_script_data(req, default_style=default_style, selection=selection)

0 commit comments

Comments
 (0)