From a888b2497928ad69e08c8c062c4763a77aeee48c Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Sun, 5 Apr 2009 00:10:28 +0300 Subject: [PATCH] autosummary: don't insert UTF-8 non-breaking spaces to signatures; these seem to cause problems for latex builds --- sphinx/ext/autosummary/__init__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sphinx/ext/autosummary/__init__.py b/sphinx/ext/autosummary/__init__.py index 00e4307eb..b1db7863f 100644 --- a/sphinx/ext/autosummary/__init__.py +++ b/sphinx/ext/autosummary/__init__.py @@ -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 -----------------------------------------------------------