forked from osmocom/wireshark
Convert files with mixed (unix and DOS) EOL-style correctly.
svn path=/trunk/; revision=13080
This commit is contained in:
parent
2617e40356
commit
61a74850dd
|
@ -27,7 +27,9 @@
|
|||
use strict;
|
||||
|
||||
while (<STDIN>) {
|
||||
$_ =~ s/\n/\r\n/;
|
||||
if($_ !~ /\r\n/) {
|
||||
$_ =~ s/\n/\r\n/;
|
||||
}
|
||||
print $_;
|
||||
}
|
||||
1;
|
||||
|
|
Loading…
Reference in New Issue