3 """! @package utils.eol
7 from optparse
import OptionParser
8 parser = OptionParser()
9 parser.add_option(
"-i",
"--input", dest=
"input", action=
"store", help=
"input MDF file")
10 parser.add_option(
"-o",
"--output", dest=
"output", action=
"store", help=
"output MDF file")
11 options = parser.parse_args()[0]
15 in_file = open(options.input,
"r", encoding='utf-8')
16 out_file = open(options.output, "w", encoding=
'utf-8')
18 in_file = open(options.input,
"r")
19 out_file = open(options.output, "w")
23 if os.name ==
'posix':
32 for line
in in_file.readlines():
34 if line != EOL
and not line.startswith(
'\\'):
35 previous_line = lines.pop()
36 line = previous_line.replace(EOL,
" ") + line