summaryrefslogtreecommitdiff
path: root/sphinx/roles.py
diff options
context:
space:
mode:
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>2022-04-22 03:28:12 +0100
committerAdam Turner <9087854+AA-Turner@users.noreply.github.com>2022-04-22 04:21:38 +0100
commitcbe0c99181ba9398b5905a34dde7dc96dd369fd8 (patch)
tree9d7443c4641d2430da956e08bcad1c47a8cc763d /sphinx/roles.py
parent644a754ba12030a40c873ac8f62656c5d3d9cc82 (diff)
downloadsphinx-git-cbe0c99181ba9398b5905a34dde7dc96dd369fd8.tar.gz
`rawsource` is deprecated in `docutils.nodes.Text`
Diffstat (limited to 'sphinx/roles.py')
-rw-r--r--sphinx/roles.py4
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