oops, do not drop all line-endings allogether !
This commit is contained in:
parent
08cee34459
commit
31aee272d6
1 changed files with 2 additions and 2 deletions
|
@ -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*$/) {
|
||||
|
|
Loading…
Add table
Reference in a new issue