mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-16 07:55:41 +00:00
da46f6566a
Thanks to José.
18 lines
350 B
Python
18 lines
350 B
Python
#! /usr/bin/env python
|
|
|
|
###############
|
|
import sys
|
|
|
|
for fname in sys.argv[1:]:
|
|
infile = open( fname, "r" )
|
|
instr = infile.read()
|
|
infile.close()
|
|
outstr = instr.replace( "\r\n", "\n" ).replace( "\r", "\n" )
|
|
|
|
if outstr == instr:
|
|
continue
|
|
|
|
outfile = open( fname , "w" )
|
|
outfile.write( outstr )
|
|
outfile.close()
|