This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
UCD.t: white-space only
authorKarl Williamson <public@khwilliamson.com>
Fri, 10 Feb 2012 23:18:23 +0000 (16:18 -0700)
committerKarl Williamson <public@khwilliamson.com>
Fri, 10 Feb 2012 23:20:13 +0000 (16:20 -0700)
This outdents some statements that are no longer enclosed in a block

lib/Unicode/UCD.t

index 99ffc9d..dd8a868 100644 (file)
@@ -1688,21 +1688,21 @@ foreach my $prop (keys %props) {
                 next;
             }
 
-                # The ad property has one entry which isn't in the file.
-                # Ignore it, but make sure it is in order.
-                if ($format eq 'ad'
-                    && $invmap_ref->[$i] eq '<hangul syllable>'
-                    && $invlist_ref->[$i] == 0xAC00)
+            # The ad property has one entry which isn't in the file.
+            # Ignore it, but make sure it is in order.
+            if ($format eq 'ad'
+                && $invmap_ref->[$i] eq '<hangul syllable>'
+                && $invlist_ref->[$i] == 0xAC00)
+            {
+                if (($i > 0 && $invlist_ref->[$i] <= $invlist_ref->[$i-1])
+                    || $invlist_ref->[$i] >= $invlist_ref->[$i+1])
                 {
-                    if (($i > 0 && $invlist_ref->[$i] <= $invlist_ref->[$i-1])
-                        || $invlist_ref->[$i] >= $invlist_ref->[$i+1])
-                    {
-                        fail("prop_invmap('$mod_prop')");
-                        diag(sprintf "Range beginning at %04X is out-of-order.", $invlist_ref->[$i]);
-                        next PROPERTY;
-                    }
-                    next;
+                    fail("prop_invmap('$mod_prop')");
+                    diag(sprintf "Range beginning at %04X is out-of-order.", $invlist_ref->[$i]);
+                    next PROPERTY;
                 }
+                next;
+            }
 
             # Finally have figured out what the map column in the file should
             # be.  Append the line to the running string.