Bug 72119 - Web Inspector: Option to configure indentation of pretty-printed Javascript
Summary: Web Inspector: Option to configure indentation of pretty-printed Javascript
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Alexander Pavlov (apavlov)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-11 05:29 PST by Alexander Pavlov (apavlov)
Modified: 2011-11-11 07:14 PST (History)
11 users (show)

See Also:


Attachments
Patch (8.86 KB, patch)
2011-11-11 06:20 PST, Alexander Pavlov (apavlov)
pfeldman: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pavlov (apavlov) 2011-11-11 05:29:52 PST
What steps will reproduce the problem?
1. Pretty print any script on the page
2. The indentation used by default seems to be 4 spaces

What is the expected result?
It would be nice to be able to configure indentation level — 2 spaces, 4 spaces, etc.

What happens instead?
Indentation level is always at 4 spaces, and is not configurable.

Upstreaming http://code.google.com/p/chromium/issues/detail?id=103233
Comment 1 Alexander Pavlov (apavlov) 2011-11-11 06:20:15 PST
Created attachment 114690 [details]
Patch
Comment 2 Pavel Podivilov 2011-11-11 06:59:32 PST
Looks good!
Comment 3 Alexander Pavlov (apavlov) 2011-11-11 07:14:55 PST
Committed r99963: <http://trac.webkit.org/changeset/99963>