summaryrefslogtreecommitdiff
path: root/sphinx/util/docfields.py
diff options
context:
space:
mode:
authorNozomu Kaneko <nozom.kaneko@gmail.com>2013-01-13 02:14:00 +0900
committerNozomu Kaneko <nozom.kaneko@gmail.com>2013-01-13 02:14:00 +0900
commit58c0c79c17fd46ba6674c9971896306dc48cbe8d (patch)
treea31e4f6d9c109b7ff525fd13164426dd29c699e7 /sphinx/util/docfields.py
parentd2a087e88d838b7c7f62643e06f666961d4b33e5 (diff)
downloadsphinx-git-58c0c79c17fd46ba6674c9971896306dc48cbe8d.tar.gz
use ``nodes.inline`` with a "translatable" attr instead
Diffstat (limited to 'sphinx/util/docfields.py')
-rw-r--r--sphinx/util/docfields.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/docfields.py b/sphinx/util/docfields.py
index e3b12f4ca..b59d3f317 100644
--- a/sphinx/util/docfields.py
+++ b/sphinx/util/docfields.py
@@ -255,8 +255,8 @@ class DocFieldTransformer(object):
[nodes.Text(argtype)]
fieldarg = argname
- translatable_content = nodes.paragraph(fieldbody.rawsource,
- removable=True)
+ translatable_content = nodes.inline(fieldbody.rawsource,
+ translatable=True)
translatable_content.source = fieldbody.parent.source
translatable_content.line = fieldbody.parent.line
translatable_content += content