Kaydet (Commit) 61e7ce8b authored tarafından Kurt B. Kaiser's avatar Kurt B. Kaiser

- 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
üst 08be9dcb
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? What's New in IDLE 1.1.1?
========================= =========================
......
...@@ -90,6 +90,7 @@ class ScriptBinding: ...@@ -90,6 +90,7 @@ class ScriptBinding:
f.close() f.close()
if '\r' in source: if '\r' in source:
source = re.sub(r"\r\n", "\n", source) source = re.sub(r"\r\n", "\n", source)
source = re.sub(r"\r", "\n", source)
if source and source[-1] != '\n': if source and source[-1] != '\n':
source = source + '\n' source = source + '\n'
text = self.editwin.text text = self.editwin.text
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment