This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
adjust indentation to match other DD code
authorTony Cook <tony@develop-help.com>
Wed, 10 Jul 2013 04:19:17 +0000 (14:19 +1000)
committerTony Cook <tony@develop-help.com>
Wed, 17 Jul 2013 00:45:19 +0000 (10:45 +1000)
dist/Data-Dumper/Dumper.xs

index 2a19097..60fe404 100644 (file)
@@ -237,31 +237,30 @@ esc_q_utf8(pTHX_ SV* sv, const char *src, STRLEN slen, I32 do_utf8, I32 useqq)
              if (useqq && (k <= 31 || k == 127 || (!do_utf8 && k > 127))) {
                *r++ = '\\';
                switch (k) {
-                   case 7:  *r++ = 'a'; break;
-                   case 8:  *r++ = 'b'; break;
-                   case 9:  *r++ = 't'; break;
-                   case 10: *r++ = 'n'; break;
-                   case 12: *r++ = 'f'; break;
-                   case 13: *r++ = 'r'; break;
-                   case 27: *r++ = 'e'; break;
-                    default:
-                      /* faster than
-                       * r = r + my_sprintf(r, "%o", k);
-                       */
-                      if (k <= 7) {
-                        *r++ = (char)k + '0';
-                      } else if (k <= 63) {
-                        *r++ = (char)(k>>3) + '0';
-                        *r++ = (char)(k&7) + '0';
-                      } else {
-                        *r++ = (char)(k>>6) + '0';
-                        *r++ = (char)((k&63)>>3) + '0';
-                        *r++ = (char)(k&7) + '0';
-                     }
+               case 7:  *r++ = 'a'; break;
+               case 8:  *r++ = 'b'; break;
+               case 9:  *r++ = 't'; break;
+               case 10: *r++ = 'n'; break;
+               case 12: *r++ = 'f'; break;
+               case 13: *r++ = 'r'; break;
+               case 27: *r++ = 'e'; break;
+               default:
+                   /* faster than
+                    * r = r + my_sprintf(r, "%o", k);
+                    */
+                   if (k <= 7) {
+                       *r++ = (char)k + '0';
+                   } else if (k <= 63) {
+                       *r++ = (char)(k>>3) + '0';
+                       *r++ = (char)(k&7) + '0';
+                   } else {
+                       *r++ = (char)(k>>6) + '0';
+                       *r++ = (char)((k&63)>>3) + '0';
+                       *r++ = (char)(k&7) + '0';
+                   }
                }
-             }
-             else
-             if (k < 0x80)
+           }
+           else if (k < 0x80)
 #endif
                 *r++ = (char)k;
             else {