mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
autosummary: don't insert UTF-8 non-breaking spaces to signatures; these seem to cause problems for latex builds
This commit is contained in:
parent
f9272dc777
commit
a888b24979
@ -259,8 +259,8 @@ class Autosummary(Directive):
|
||||
table = nodes.table('')
|
||||
group = nodes.tgroup('', cols=2)
|
||||
table.append(group)
|
||||
group.append(nodes.colspec('', colwidth=10))
|
||||
group.append(nodes.colspec('', colwidth=90))
|
||||
group.append(nodes.colspec('', colwidth=30))
|
||||
group.append(nodes.colspec('', colwidth=70))
|
||||
body = nodes.tbody('')
|
||||
group.append(body)
|
||||
|
||||
@ -319,8 +319,7 @@ def mangle_signature(sig, max_chars=30):
|
||||
else:
|
||||
sig = ", ".join(args)
|
||||
|
||||
sig = unicode(sig).replace(u" ", u"\u00a0")
|
||||
return u"(%s)" % sig
|
||||
return "(%s)" % sig
|
||||
|
||||
# -- Importing items -----------------------------------------------------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user