- From: <bugzilla@jessica.w3.org>
- Date: Tue, 25 Sep 2012 16:08:58 +0000
- To: public-webapps-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=19003
--- Comment #3 from Glenn Maynard <glenn@zewt.org> 2012-09-25 16:08:58 UTC ---
Huh, what? Why would you add line endings to a string that didn't have any?
The whole point is to convert the line endings in the string to the line
endings of the platform.
s = open("file with unix line endings.txt").read()
s = s.replace("\n", "\r\n")
open("file with DOS line endings.txt", "w").write(s)
--
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 25 September 2012 16:09:06 UTC