Bug 117716

Summary: Web Inspector: JS PrettyPrinting has incorrect indentation for switch inside single line if statement
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: joepeck, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

Joseph Pecoraro
Reported 2013-06-17 14:10:21 PDT
TEST INPUT: if (true) switch (x) { case 1: if (true) "statement"; a = b; break; case 2: if (true) "statement"; a = b; break; case 3: if (true) "statement"; a = b; break; } EXPECTED: -- Same as the original input -- ACTUAL: if (true) switch (x) { case 1: if (true) "statement"; a = b; break; case 2: if (true) "statement"; a = b; break; case 3: if (true) "statement"; a = b; break; }
Attachments
Radar WebKit Bug Importer
Comment 1 2013-06-17 14:11:02 PDT
Joseph Pecoraro
Comment 2 2016-04-04 14:49:00 PDT
This will be fixed by Bug 156178. *** This bug has been marked as a duplicate of bug 156178 ***
Note You need to log in before you can comment on or make changes to this bug.