Convert files with mixed (unix and DOS) EOL-style correctly.

svn path=/trunk/; revision=13080
This commit is contained in:
Lars Roland 2005-01-17 00:23:43 +00:00
parent 2617e40356
commit 61a74850dd
1 changed files with 3 additions and 1 deletions

View File

@ -27,7 +27,9 @@
use strict;
while (<STDIN>) {
$_ =~ s/\n/\r\n/;
if($_ !~ /\r\n/) {
$_ =~ s/\n/\r\n/;
}
print $_;
}
1;