diff options
Diffstat (limited to 'doc/sphinxext/autosummary.py')
-rw-r--r-- | doc/sphinxext/autosummary.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/sphinxext/autosummary.py b/doc/sphinxext/autosummary.py index 481b9969e..c32953ff5 100644 --- a/doc/sphinxext/autosummary.py +++ b/doc/sphinxext/autosummary.py @@ -233,9 +233,9 @@ def get_autosummary(names, state, no_signatures=False): sig = re.sub(r'=[^,)]+,', ',', sig) sig = re.sub(r'=[^,)]+\)$', '])', sig) # shorten long strings - sig = re.sub(r'(\[.{16,16}[^,)]*?),.*?\]\)', r'\1, ...])', sig) + sig = re.sub(r'(\[.{16,16}[^,]*?),.*?\]\)', r'\1, ...])', sig) else: - sig = re.sub(r'(\(.{16,16}[^,)]*?),.*?\)', r'\1, ...)', sig) + sig = re.sub(r'(\(.{16,16}[^,]*?),.*?\)', r'\1, ...)', sig) # make signature contain non-breaking spaces col1 += u"\\ \u00a0" + unicode(sig).replace(u" ", u"\u00a0") col2 = title |