diff options
-rw-r--r-- | Lib/idlelib/NEWS.txt | 9 | ||||
-rw-r--r-- | Lib/idlelib/ScriptBinding.py | 1 |
2 files changed, 10 insertions, 0 deletions
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 |