New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 602263 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit 29 days ago
Closed: Apr 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

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
 
Owner: lushnikov@chromium.org
Status: Assigned (was: Unconfirmed)
Status: WontFix (was: Assigned)
Thank you for the heads-up!

This was fixed as we were refactoring pretty-printing code. It works fine in Chrome Canary now.
Great news, thanks!

Sign in to add a comment