mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Cmake tests: Combine "text" field to extract translators name
While extracting names of a translator from the html page it can happen that the perl's HTML::Parser module splits the "text".
This commit is contained in:
parent
b275b30391
commit
5439f4e554
6
development/checkurls/getTranslators.pl
Normal file → Executable file
6
development/checkurls/getTranslators.pl
Normal file → Executable file
@ -141,7 +141,7 @@ else {
|
||||
|
||||
for my $lang (sort keys %list) {
|
||||
for my $rentry (@{$list{$lang}}) {
|
||||
my $prefix = sprintf("(%02d%) ", "$rentry->{fract}");
|
||||
my $prefix = sprintf("(%03d%) ", "$rentry->{fract}");
|
||||
if (defined($rentry->{error})) {
|
||||
$errors++;
|
||||
$prefix .= sprintf("%-24s", "$rentry->{error}:");
|
||||
@ -268,10 +268,10 @@ sub text($$)
|
||||
}
|
||||
if ($status{Tag_td} == 6) {
|
||||
if (&actual_tag() eq "a") {
|
||||
$page_row{name} = $text;
|
||||
$page_row{name} .= $text; # '.=' because text can be splitted
|
||||
}
|
||||
elsif (&actual_tag() eq "td") { # name without associated e-mail
|
||||
$page_row{name} = $text;
|
||||
$page_row{name} .= $text;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user