autosummary: don't insert UTF-8 non-breaking spaces to signatures; these seem to cause problems for latex builds

This commit is contained in:
Pauli Virtanen 2009-04-05 00:10:28 +03:00
parent f9272dc777
commit a888b24979

View File

@ -259,8 +259,8 @@ class Autosummary(Directive):
table = nodes.table('') table = nodes.table('')
group = nodes.tgroup('', cols=2) group = nodes.tgroup('', cols=2)
table.append(group) table.append(group)
group.append(nodes.colspec('', colwidth=10)) group.append(nodes.colspec('', colwidth=30))
group.append(nodes.colspec('', colwidth=90)) group.append(nodes.colspec('', colwidth=70))
body = nodes.tbody('') body = nodes.tbody('')
group.append(body) group.append(body)
@ -319,8 +319,7 @@ def mangle_signature(sig, max_chars=30):
else: else:
sig = ", ".join(args) sig = ", ".join(args)
sig = unicode(sig).replace(u" ", u"\u00a0") return "(%s)" % sig
return u"(%s)" % sig
# -- Importing items ----------------------------------------------------------- # -- Importing items -----------------------------------------------------------