diff options
author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2022-04-22 03:28:12 +0100 |
---|---|---|
committer | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2022-04-22 04:21:38 +0100 |
commit | cbe0c99181ba9398b5905a34dde7dc96dd369fd8 (patch) | |
tree | 9d7443c4641d2430da956e08bcad1c47a8cc763d /doc/development/tutorials | |
parent | 644a754ba12030a40c873ac8f62656c5d3d9cc82 (diff) | |
download | sphinx-git-cbe0c99181ba9398b5905a34dde7dc96dd369fd8.tar.gz |
`rawsource` is deprecated in `docutils.nodes.Text`
Diffstat (limited to 'doc/development/tutorials')
-rw-r--r-- | doc/development/tutorials/examples/todo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/development/tutorials/examples/todo.py b/doc/development/tutorials/examples/todo.py index 59e394ee8..61eaac388 100644 --- a/doc/development/tutorials/examples/todo.py +++ b/doc/development/tutorials/examples/todo.py @@ -93,7 +93,7 @@ def process_todo_nodes(app, doctree, fromdocname): description = ( _('(The original entry is located in %s, line %d and can be found ') % (filename, todo_info['lineno'])) - para += nodes.Text(description, description) + para += nodes.Text(description) # Create a reference newnode = nodes.reference('', '') @@ -104,7 +104,7 @@ def process_todo_nodes(app, doctree, fromdocname): newnode['refuri'] += '#' + todo_info['target']['refid'] newnode.append(innernode) para += newnode - para += nodes.Text('.)', '.)') + para += nodes.Text('.)') # Insert into the todolist content.append(todo_info['todo']) |