summaryrefslogtreecommitdiff
path: root/sphinx/util/docfields.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-01-17 07:25:31 +0100
committerGeorg Brandl <georg@python.org>2014-01-17 07:25:31 +0100
commitcaf7fccc80bc2fb485599113bb4e977de0729169 (patch)
treea841e992d1dacb1468656a5584e3ab93b72ed44e /sphinx/util/docfields.py
parent97df8becb0e97373d76c5d8809d50711a987cf92 (diff)
parentd0dccd32a9d4e0960c5be9a801b14a3739670684 (diff)
downloadsphinx-caf7fccc80bc2fb485599113bb4e977de0729169.tar.gz
merge with stable
Diffstat (limited to 'sphinx/util/docfields.py')
-rw-r--r--sphinx/util/docfields.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/sphinx/util/docfields.py b/sphinx/util/docfields.py
index 6fd8ba95..150bf3a1 100644
--- a/sphinx/util/docfields.py
+++ b/sphinx/util/docfields.py
@@ -99,7 +99,8 @@ class GroupedField(Field):
return Field.make_field(self, types, domain, items[0])
for fieldarg, content in items:
par = nodes.paragraph()
- par += self.make_xref(self.rolename, domain, fieldarg, nodes.strong)
+ par += self.make_xref(self.rolename, domain, fieldarg,
+ addnodes.literal_strong)
par += nodes.Text(' -- ')
par += content
listnode += nodes.list_item('', par)
@@ -137,7 +138,8 @@ class TypedField(GroupedField):
def make_field(self, types, domain, items):
def handle_item(fieldarg, content):
par = nodes.paragraph()
- par += self.make_xref(self.rolename, domain, fieldarg, nodes.strong)
+ par += self.make_xref(self.rolename, domain, fieldarg,
+ addnodes.literal_strong)
if fieldarg in types:
par += nodes.Text(' (')
# NOTE: using .pop() here to prevent a single type node to be