oops, do not drop all line-endings allogether !

This commit is contained in:
Yann Dirson 2004-11-09 00:34:35 +00:00
parent 08cee34459
commit 31aee272d6

View file

@ -42,7 +42,7 @@ foreach my $file (@ARGV) {
$translatable = ($1 ne '');
$_ = $2;
if (m/(.*)\r/) { $_ = $1; }
if (m/(.*)\r/) { $_ = "$1\n"; }
$str = $_;
$line = $.;
@ -62,7 +62,7 @@ foreach my $file (@ARGV) {
} elsif (defined $str) {
# part of multi-line
if (m/(.*)\r/) { $_ = $1; }
if (m/(.*)\r/) { $_ = "$1\n"; }
$str .= $_;
} elsif (m/(\S+)\s*=\s*(.*?)\s*$/) {