summaryrefslogtreecommitdiff
path: root/external/rst-directive.py
diff options
context:
space:
mode:
authorMatthäus G. Chajdas <dev@anteru.net>2020-09-08 20:33:25 +0200
committerMatthäus G. Chajdas <dev@anteru.net>2020-09-08 20:33:25 +0200
commit203ef1eff6daebab6f95b0b49e6e6a58168073fb (patch)
tree7defa199f48a34787f980b6400d8bbaa9380039a /external/rst-directive.py
parente09d4e0cf23d7c6069ddc690942ceb4cd23fd556 (diff)
parentb2c91c70ee536b0472100d1273818f8bb45529fe (diff)
downloadpygments-git-bug/angular-html.tar.gz
Merge branch 'master' into bug/angular-htmlbug/angular-html
# Conflicts: # tests/test_shell.py
Diffstat (limited to 'external/rst-directive.py')
-rw-r--r--external/rst-directive.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/external/rst-directive.py b/external/rst-directive.py
index a381ce43..937c3765 100644
--- a/external/rst-directive.py
+++ b/external/rst-directive.py
@@ -76,7 +76,7 @@ class Pygments(Directive):
lexer = TextLexer()
# take an arbitrary option if more than one is given
formatter = self.options and VARIANTS[list(self.options)[0]] or DEFAULT
- parsed = highlight(u'\n'.join(self.content), lexer, formatter)
+ parsed = highlight('\n'.join(self.content), lexer, formatter)
return [nodes.raw('', parsed, format='html')]
directives.register_directive('sourcecode', Pygments)