Kaydet (Commit) 0b48303f authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Bug #1525817: Don't truncate short lines in IDLE's tool tips.

üst 0c4a3b33
......@@ -49,7 +49,11 @@ class CallTip:
"""
# truncate overly long calltip
if len(text) >= 79:
text = text[:75] + ' ...'
textlines = text.splitlines()
for i, line in enumerate(textlines):
if len(line) > 79:
textlines[i] = line[:75] + ' ...'
text = '\n'.join(textlines)
self.text = text
if self.tipwindow or not self.text:
return
......
......@@ -39,6 +39,8 @@ Core and builtins
Library
-------
- Bug #1525817: Don't truncate short lines in IDLE's tool tips.
- Patch #1515343: Fix printing of deprecated string exceptions with a
value in the traceback module.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment