diff options
author | Pauli Virtanen <pav@iki.fi> | 2009-03-17 22:11:52 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2009-03-17 22:11:52 +0000 |
commit | ad9cd295863cdc7a96f219574b15cd2f03189693 (patch) | |
tree | b48da035691634f8a3e59a9a3d35d85151506650 /doc/sphinxext/autosummary.py | |
parent | b43084ee608d1351deaa458506b7f5430568f770 (diff) | |
download | numpy-ad9cd295863cdc7a96f219574b15cd2f03189693.tar.gz |
sphinxext: autosummary: fix another signature formatting issue
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 |