From 61e7ce8b834f3777da38c06a4718d0bb0e522248 Mon Sep 17 00:00:00 2001 From: "Kurt B. Kaiser" Date: Tue, 23 Aug 2005 17:38:56 +0000 Subject: - Mac line endings were incorrect when pasting code from some browsers when using X11 and the Fink distribution. Python Bug 1263656. Modified Files: Tag: release24-maint NEWS.txt ScriptBinding.py --- Lib/idlelib/NEWS.txt | 9 +++++++++ Lib/idlelib/ScriptBinding.py | 1 + 2 files changed, 10 insertions(+) diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt index 17cb2d8..7504cd0 100644 --- a/Lib/idlelib/NEWS.txt +++ b/Lib/idlelib/NEWS.txt @@ -1,3 +1,12 @@ +What's New in IDLE 1.1.2c1? +========================= + +*Release date: XX-SEP-2005* + +- Mac line endings were incorrect when pasting code from some browsers + when using X11 and the Fink distribution. Python Bug 1263656. + + What's New in IDLE 1.1.1? ========================= diff --git a/Lib/idlelib/ScriptBinding.py b/Lib/idlelib/ScriptBinding.py index 8ad02a4..30adaab 100644 --- a/Lib/idlelib/ScriptBinding.py +++ b/Lib/idlelib/ScriptBinding.py @@ -90,6 +90,7 @@ class ScriptBinding: f.close() if '\r' in source: source = re.sub(r"\r\n", "\n", source) + source = re.sub(r"\r", "\n", source) if source and source[-1] != '\n': source = source + '\n' text = self.editwin.text -- cgit v0.12