Skip to content

Commit 74073a6

Browse files
author
jomae
committed
1.6.1dev: follow-up to [17878], fix unable to save //not-configured// in syntax highlighting of user preferences (refs #13864)
git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.6-stable@17881 af82e41b-90c4-0310-8c96-b1721e28e2e2
1 parent ed4c150 commit 74073a6

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)