diff options
author | Lars Roland <Lars.Roland@gmx.net> | 2005-01-17 00:23:43 +0000 |
---|---|---|
committer | Lars Roland <Lars.Roland@gmx.net> | 2005-01-17 00:23:43 +0000 |
commit | 61a74850dd65aaf390556c2b38d11d6167ccf2a7 (patch) | |
tree | d81128fdec8dd8fb8a3924196115819bee3a75a6 /tools | |
parent | 2617e403563e10643a84e0af550642a2e6b7c751 (diff) |
Convert files with mixed (unix and DOS) EOL-style correctly.
svn path=/trunk/; revision=13080
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/unix2dos.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/unix2dos.pl b/tools/unix2dos.pl index f387376da6..6ebb12d67b 100755 --- a/tools/unix2dos.pl +++ b/tools/unix2dos.pl @@ -27,7 +27,9 @@ use strict; while (<STDIN>) { - $_ =~ s/\n/\r\n/; + if($_ !~ /\r\n/) { + $_ =~ s/\n/\r\n/; + } print $_; } 1; |