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
commit0a55b5df70cf79a7bea8ea362f323f3ad2c0280e (patch)
treea31e4f6d9c109b7ff525fd13164426dd29c699e7 /sphinx/util/docfields.py
parent23bc1de14e0a7034e945e23f44de98af04b16510 (diff)
downloadsphinx-0a55b5df70cf79a7bea8ea362f323f3ad2c0280e.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 e3b12f4c..b59d3f31 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