Skip to content

Commit

Permalink
PYTHOOOOOOOOOOON
Browse files Browse the repository at this point in the history
This was dying when rendered through the HTML formatter because
the HTML formatter calls translate on returned strings. Turns out
the implementation of translate on 'unicode' objects is COMPLETELY
different to the implementation on 'str' objects AND THIS IS ONLY
VAGUELY MENTIONED IN THE DOCUMENTATION
  • Loading branch information
haileys committed Jul 17, 2013
1 parent 07231a1 commit 21560d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vendor/custom_lexers/github.py
Expand Up @@ -408,7 +408,7 @@ def move_state(new_state):
def right_angle_bracket(lexer, match, ctx):
if len(ctx.stack) > 1 and ctx.stack[-2] == "string":
ctx.stack.pop()
yield match.start(), Punctuation, "}"
yield match.start(), Punctuation, u"}"
ctx.pos = match.end()
pass

Expand Down
2 changes: 1 addition & 1 deletion vendor/pygments-main/pygments/lexers/github.py
Expand Up @@ -408,7 +408,7 @@ def move_state(new_state):
def right_angle_bracket(lexer, match, ctx):
if len(ctx.stack) > 1 and ctx.stack[-2] == "string":
ctx.stack.pop()
yield match.start(), Punctuation, "}"
yield match.start(), Punctuation, u"}"
ctx.pos = match.end()
pass

Expand Down

0 comments on commit 21560d0

Please sign in to comment.