diff options
Diffstat (limited to 'sphinx/roles.py')
-rw-r--r-- | sphinx/roles.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/roles.py b/sphinx/roles.py index e2564269e..1c5216196 100644 --- a/sphinx/roles.py +++ b/sphinx/roles.py @@ -293,7 +293,7 @@ class EmphasizedLiteral(SphinxRole): if len(stack) == 3 and stack[1] == "{" and len(stack[2]) > 0: # emphasized word found if stack[0]: - result.append(nodes.Text(stack[0], stack[0])) + result.append(nodes.Text(stack[0])) result.append(nodes.emphasis(stack[2], stack[2])) stack = [''] else: @@ -310,7 +310,7 @@ class EmphasizedLiteral(SphinxRole): if ''.join(stack): # remaining is treated as Text text = ''.join(stack) - result.append(nodes.Text(text, text)) + result.append(nodes.Text(text)) return result |