#1536 Fix scm diff error

v1.0.0
closed
sf-2 (994)
General
nobody
2015-08-20
2011-02-18
No

Error from [1484]

Module allura.lib.app_globals:189 in highlight
<<                  formatter = self.pygments_formatter
                   lexer = pygments.lexers.get_lexer_by_name(lexer, encoding='chardet')
               return h.html.literal(pygments.highlight(text, lexer, formatter))

           def forge_markdown(self, **kwargs):
>>  return h.html.literal(pygments.highlight(text, lexer, formatter))
UnboundLocalError: local variable 'formatter' referenced before assignment

Discussion

  • Dave Brondsema

    Dave Brondsema - 2011-02-18
    • Description has changed:

    Diff:

    --- old 
    +++ new 
    @@ -1,4 +1,5 @@
     Error from [1484]
    +
     ~~~~
     Module allura.lib.app_globals:189 in highlight
     <<                  formatter = self.pygments_formatter
    
     
  • John Hoffman - 2011-02-18
    • status: open --> code-review
    • assigned_to: John Hoffmann
     
  • John Hoffman - 2011-02-18
    • status: code-review --> closed
     

Log in to post a comment.