Patches item #681992, was opened at 2003-02-06 18:23 Message generated for change (Comment added) made by kbk You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=309579&aid=681992&group_id=9579
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 5 Submitted By: Noam Raphael (noamr) >Assigned to: Kurt B. Kaiser (kbk) Summary: Better indentation after first line of string continuation Initial Comment: This is a fix for Jeffrey Stephens' bug report: -------------------- From: Jeffrey Stephens <[EMAIL PROTECTED]> Organization: Home User To: [email protected] Date: Mon, 3 Feb 2003 23:12:49 -0500 Subject: [Idle-dev] Bug in Idlefork 0.9a2 Executing the following code in the Python Shell window - >>> print "Snake Ey es" produces output Snake Ey es Six spaces are inserted between the 'y' and 'e' in eyes. This works fine in a terminal window. Regards, Jeff Stephens=20 ----------------------- The problem is that when IDLE detects string continuation, it indents the new line in the same way as the previous one. This makes sense if you are in the middle of a string, so the indentation of the previous line is a part of the string, but if the string starts at the current line, the indentation of the line is meaningless. The patch fixes that; if the string was started at the current line, no indentation at all is applied. I hope this helps a little, Noam ---------------------------------------------------------------------- >Comment By: Kurt B. Kaiser (kbk) Date: 2005-11-15 02:21 Message: Logged In: YES user_id=149084 Rev 41451, trunk ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=309579&aid=681992&group_id=9579 _______________________________________________ IDLE-dev mailing list [email protected] http://mail.python.org/mailman/listinfo/idle-dev
