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 c624274 commit 8bea179Copy full SHA for 8bea179
ftplugin/python/vim_ipython.py
@@ -360,6 +360,8 @@ 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])
365
return b
366
except KeyError: # no text/plain key
367
@@ -369,7 +371,7 @@ def get_doc_msg(msg_id):
369
371
c = content.get(field,None)
370
372
if c:
373
if field in ['definition']:
- c = strip_color_escapes(c).rstrip()
374
+ c = '`%s`' % strip_color_escapes(c).rstrip()
375
s = field.replace('_',' ').title()+':'
376
s = s.ljust(n)
377
if c.find('\n')==-1:
0 commit comments