New line characters multiplication on repeated pretty print
Reported by
bokunda...@gmail.com,
Apr 11 2016
|
||
Issue description
UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/49.0.2623.108 Chrome/49.0.2623.108 Safari/537.36
Steps to reproduce the problem:
1. Open a JavaScript file in Inspector > Sources containing a comma-separated list of variable declaration with value assignment. For example:
/*------------------*/
var a = 1,
b = 2,
c = 3;
/*------------------*/
2. Click "Pretty print" ("Format") icon multiple times.
What is the expected behavior?
Already pretty printed code should not change on successive button clicks (after the first one) if the code was not altered by other means.
What went wrong?
On each successive click on "pretty print" a new line is added after each comma character in variable declaration.
Did this work before? N/A
Chrome version: 49.0.2623.108 Channel: stable
OS Version: Ubuntu 14.04
Flash Version: Shockwave Flash 20.0 r0
,
Apr 11 2016
Thank you for the heads-up! This was fixed as we were refactoring pretty-printing code. It works fine in Chrome Canary now.
,
Apr 11 2016
Great news, thanks! |
||
►
Sign in to add a comment |
||
Comment 1 by lushnikov@chromium.org
, Apr 11 2016Status: Assigned (was: Unconfirmed)