[Python-checkins] r50815 - in python/trunk: Lib/idlelib/CallTipWindow.py Misc/NEWS
martin.v.loewis
python-checkins at python.org
Tue Jul 25 11:53:13 CEST 2006
Author: martin.v.loewis
Date: Tue Jul 25 11:53:12 2006
New Revision: 50815
Modified:
python/trunk/Lib/idlelib/CallTipWindow.py
python/trunk/Misc/NEWS
Log:
Bug #1525817: Don't truncate short lines in IDLE's tool tips.
Modified: python/trunk/Lib/idlelib/CallTipWindow.py
==============================================================================
--- python/trunk/Lib/idlelib/CallTipWindow.py (original)
+++ python/trunk/Lib/idlelib/CallTipWindow.py Tue Jul 25 11:53:12 2006
@@ -49,7 +49,11 @@
"""
# 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
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Tue Jul 25 11:53:12 2006
@@ -39,6 +39,8 @@
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.
More information about the Python-checkins
mailing list