Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use literal_block for Nikola code blocks
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 9, 2016
1 parent 77a998d commit 356b40d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/plugins/compile/rest/listing.py
Expand Up @@ -110,7 +110,7 @@ def run(self):

formatter = utils.NikolaPygmentsHTML(anchor_ref=anchor_ref, classes=classes, linenos=linenos, linenostart=linenostart)
out = pygments.highlight(code, lexer, formatter)
node = nodes.raw('', out, format='html')
node = nodes.literal_block(out, out)

self.add_name(node)
# if called from "include", set the source
Expand Down

0 comments on commit 356b40d

Please sign in to comment.