This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
toke.c: White-space only
authorKarl Williamson <khw@cpan.org>
Sat, 6 Apr 2019 20:08:49 +0000 (14:08 -0600)
committerKarl Williamson <khw@cpan.org>
Wed, 10 Apr 2019 15:14:22 +0000 (09:14 -0600)
This outdents code that was removed from being in a block by the
previous commit.

toke.c

diff --git a/toke.c b/toke.c
index ab35ccf..5477662 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -4053,21 +4053,21 @@ S_scan_const(pTHX_ char *start)
         else if (s_is_utf8) { /* UTF8ness matters: convert output to utf8 */
             STRLEN need = send - s + 1; /* See Note on sizing above. */
 
-               SvCUR_set(sv, d - SvPVX_const(sv));
-               SvPOK_on(sv);
-               *d = '\0';
+            SvCUR_set(sv, d - SvPVX_const(sv));
+            SvPOK_on(sv);
+            *d = '\0';
 
-                if (utf8_variant_count == 0) {
-                    SvUTF8_on(sv);
-                    d = SvCUR(sv) + SvGROW(sv, SvCUR(sv) + need);
-                }
-                else {
-                    sv_utf8_upgrade_flags_grow(sv,
-                                               SV_GMAGIC|SV_FORCE_UTF8_UPGRADE,
-                                               need);
-                    d = SvPVX(sv) + SvCUR(sv);
-                }
-               d_is_utf8 = TRUE;
+            if (utf8_variant_count == 0) {
+                SvUTF8_on(sv);
+                d = SvCUR(sv) + SvGROW(sv, SvCUR(sv) + need);
+            }
+            else {
+                sv_utf8_upgrade_flags_grow(sv,
+                                           SV_GMAGIC|SV_FORCE_UTF8_UPGRADE,
+                                           need);
+                d = SvPVX(sv) + SvCUR(sv);
+            }
+            d_is_utf8 = TRUE;
             goto default_action; /* Redo, having upgraded so both are UTF-8 */
         }
         else {  /* UTF8ness matters: convert this non-UTF8 source char to