summaryrefslogtreecommitdiff
path: root/sphinx/util/docfields.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-01-19 17:41:41 +0100
committerGeorg Brandl <georg@python.org>2014-01-19 17:41:41 +0100
commita003cdbd2fcf73e24670568facda9bd6c5a73e76 (patch)
treeb227753b9b0a0bb70b412176a186e0e07c99c26c /sphinx/util/docfields.py
parentdbefc55b2fac1e0f531af7d5f4de51aeef65bcf2 (diff)
parent647512528f59c24781ed4043bab0d811e97ef3a7 (diff)
downloadsphinx-a003cdbd2fcf73e24670568facda9bd6c5a73e76.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