Strange behaviour with os.linesep
Terry Reedy
tjreedy at udel.edu
Wed Jul 24 12:01:33 EDT 2013
On 7/23/2013 7:41 PM, Dennis Lee Bieber wrote:
> On 23 Jul 2013 15:25:12 GMT, Steven D'Aprano
> <steve+comp.lang.python at pearwood.info> declaimed the following:
>
>> On Tue, 23 Jul 2013 13:42:13 +0200, Vincent Vande Vyvre wrote:
>>
>>> On Windows a script where de endline are the system line sep, the files
>>> are open with a double line in Eric4, Notepad++ or Gedit but they are
>>> correctly displayed in the MS Bloc-Notes.
>>
>> I suspect the problem lies with Eric4, Notepad++ and Gedit. Do you
>> perhaps have to manually tell them that the file uses Windows line
>> separators?
I suspect the problem likes in the file written. Notepad++ works fine
with \r\n or \n on input and can produce either on output.
> Don't know about those, but SciTE I know has both an menu option for
> line ending (<cr><lf>, <lf>, <cr>), and one for "convert line endings"
--
Terry Jan Reedy
More information about the Python-list
mailing list