diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/langtool.pl | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tools/langtool.pl b/tools/langtool.pl index a0e147c4ad..bffdde2c9b 100755 --- a/tools/langtool.pl +++ b/tools/langtool.pl | |||
@@ -209,15 +209,9 @@ foreach my $file (@ARGV) { | |||
209 | if ($id ne "" and grep(/^$id$/, @ids)) { | 209 | if ($id ne "" and grep(/^$id$/, @ids)) { |
210 | # Set desc | 210 | # Set desc |
211 | $line =~ s/\s*desc:.*/ desc: deprecated/; | 211 | $line =~ s/\s*desc:.*/ desc: deprecated/; |
212 | # Set user | 212 | # Leave user field alone |
213 | $line =~ s/\s*user:.*/ user:/; | 213 | if ($location =~ /source|dest|voice/) { |
214 | # Print an empty target line after opening tag (target isn't set) | 214 | $line =~ s/".*"/""/; |
215 | if ($location =~ /source|dest|voice/ and $target eq "") { | ||
216 | $line .= " *: none\n"; | ||
217 | } | ||
218 | # Do not print target: string lines | ||
219 | elsif ($location =~ /source|dest|voice/ and $target ne "") { | ||
220 | $line = ""; | ||
221 | } | 215 | } |
222 | } | 216 | } |
223 | } | 217 | } |