chiark / gitweb /
i18n: i18n-diff-auditor: ignore space in old "-string only in brackets
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Sep 2018 23:34:18 +0000 (00:34 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Sep 2018 23:54:38 +0000 (00:54 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
i18n-diff-auditor

index c3630b6..43e1c10 100755 (executable)
@@ -309,7 +309,7 @@ sub analyse_chunk_core () {
                        pop @analysed_y;
                        last;
                    }
-                   $xs =~ s{^\s+}{};
+                   $xs =~ s{^\s+}{} if $bras;
                    $exactly->($y->{E}, $y->{P});
                    if ($y->{T} eq 'bra' or $y->{E} eq '?') {
                        $bras++;