diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-01-25 15:20:08 -0800 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-01-25 15:20:08 -0800 |
| commit | 34eae5738c1f4ab0eddc469309ae0cbbd5346c4e (patch) | |
| tree | eea6dc3ab8a18c04e2b3923674d2ec1aef85bb6a /doc | |
| parent | 10e22fac85e0684a12325aa987fb6d5c3450bf93 (diff) | |
| parent | 7614c02e9a31bfbdc9cc52e42b438848eec6af58 (diff) | |
merged trunk
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/ext/nova_todo.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/ext/nova_todo.py b/doc/ext/nova_todo.py index efc0c3edd..67bbfd2e0 100644 --- a/doc/ext/nova_todo.py +++ b/doc/ext/nova_todo.py @@ -26,7 +26,7 @@ def process_todo_nodes(app, doctree, fromdocname): # reading through docutils for the proper way to construct an empty list lists = [] for i in xrange(5): - lists.append(nodes.bullet_list("", nodes.Text('',''))); + lists.append(nodes.bullet_list("", nodes.Text('',''))) lists[i].remove(lists[i][0]) lists[i].set_class('todo_list') @@ -42,7 +42,8 @@ def process_todo_nodes(app, doctree, fromdocname): # Create a reference newnode = nodes.reference('', '') - link = _('%s, line %d') % (filename, todo_info['lineno']); + line_info = todo_info['lineno'] + link = _('%(filename)s, line %(line_info)d') % locals() innernode = nodes.emphasis(link, link) newnode['refdocname'] = todo_info['docname'] |
