We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bea179 commit 0c32d06Copy full SHA for 0c32d06
ftplugin/python/vim_ipython.py
@@ -360,8 +360,9 @@ def get_doc_msg(msg_id):
360
text = content['data']['text/plain']
361
for line in text.split('\n'):
362
b.append(strip_color_escapes(line).rstrip())
363
- if b[-1].startswith('Signature:'):
364
- b[-1] = re.sub(r'(\s+)(.*)$', r'\1`\2`', b[-1])
+ if 'signature:' in b[-1].lower():
+ left, _, right = b[-1].partition(': ')
365
+ b[-1] = '{0}: `{1}`'.format(left, right)
366
return b
367
except KeyError: # no text/plain key
368
0 commit comments