mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
17 lines
361 B
Python
17 lines
361 B
Python
|
#! /usr/bin/env python
|
||
|
|
||
|
###############
|
||
|
import sys
|
||
|
|
||
|
for fname in sys.argv[1:]:
|
||
|
infile = open( fname, "rb" )
|
||
|
instr = infile.read()
|
||
|
infile.close()
|
||
|
outstr = instr.replace( "\r\n", "\n" ).replace( "\r", "\n" )
|
||
|
|
||
|
if len(outstr) == len(instr):
|
||
|
continue
|
||
|
|
||
|
outfile = open( fname , "wb" )
|
||
|
outfile.write( outstr )
|
||
|
outfile.close()
|