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

This commit is contained in:
Martin v. Löwis 2006-07-25 09:53:12 +00:00
parent 0c4a3b330d
commit 0b48303f28
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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.