Docs: fix node constructed by code_literal role

This commit is contained in:
Mark Harrah 2013-08-08 21:24:17 -04:00
parent a09075c98c
commit 5f2b5d4ad4
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ def process_node(node):
# This directive formats a string to be in a fixed width font.
# The string is taken as a literal and is not processed for further inline formatting.
def code_literal(name, rawtext, text, lineno, inliner, options={}, content=[]):
node = nodes.Text(text, text)
node = nodes.inline('', text)
node['classes'].append('pre')
return [node], []