mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
bb53335350
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39914 a592a061-630c-0410-9148-cb99ea01b6c8
17 lines
385 B
Python
17 lines
385 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" ).replace( "\n", "\r\n" )
|
|
|
|
if len(outstr) == len(instr):
|
|
continue
|
|
|
|
outfile = open( fname , "wb" )
|
|
outfile.write( outstr )
|
|
outfile.close() |