mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-24 08:35:21 +00:00
behave properly when WML files have msdos line-endings in multiline strings
This commit is contained in:
parent
247ea5bb81
commit
08cee34459
@ -37,11 +37,13 @@ foreach my $file (@ARGV) {
|
||||
$_ = $3;
|
||||
redo LINE;
|
||||
|
||||
} elsif (!defined $str and m/^(?:[^\"]*?)((?:_\s*)?)\s*\"([^\"]*)\r?/) {
|
||||
} elsif (!defined $str and m/^(?:[^\"]*?)((?:_\s*)?)\s*\"([^\"]*)/) {
|
||||
# start of multi-line
|
||||
|
||||
$translatable = ($1 ne '');
|
||||
$str = $2;
|
||||
$_ = $2;
|
||||
if (m/(.*)\r/) { $_ = $1; }
|
||||
$str = $_;
|
||||
$line = $.;
|
||||
|
||||
} elsif (m/(.*?)\"(.*)$/) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user