mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
parent
bd40f2a851
commit
8997270a77
@ -7,7 +7,7 @@ for fname in sys.argv[1:]:
|
|||||||
infile = open( fname, "rb" )
|
infile = open( fname, "rb" )
|
||||||
instr = infile.read()
|
instr = infile.read()
|
||||||
infile.close()
|
infile.close()
|
||||||
outstr = instr.replace( "\r\n", "\n" ).replace( "\r", "\n" ).replace( "\n", "\r\n" )
|
outstr = instr.replace( b"\r\n", b"\n" ).replace( b"\r", b"\n" ).replace( b"\n", b"\r\n" )
|
||||||
|
|
||||||
if len(outstr) == len(instr):
|
if len(outstr) == len(instr):
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user