Closed
Bug 1361415
Opened 8 years ago
Closed 5 years ago
pprint output is quoted and its content is escaped
Categories
(DevTools :: Console, defect, P3)
DevTools
Console
Tracking
(firefox62 affected)
RESOLVED
INVALID
Tracking | Status | |
---|---|---|
firefox62 | --- | affected |
People
(Reporter: Oriol, Unassigned)
References
Details
Bug 1342526 quotes and escapes strings in the console.
This makes pprint so ugly:
> pprint(['a','b','c','d'])
" 0: \"a\"
1: \"b\"
2: \"c\"
3: \"d\""
In the old console it was much better:
> pprint(['a','b','c','d'])
" 0: "a"
1: "b"
2: "c"
3: "d""
And before bug 1342526 it was perfect:
> pprint(['a','b','c','d'])
0: "a"
1: "b"
2: "c"
3: "d"
Comment 1•8 years ago
|
||
According to https://developer.mozilla.org/en-US/docs/Tools/Web_Console/Helpers#pprint:
pprint()
Formats the specified value in a readable way; this is useful for dumping the contents of objects and arrays.
I'm not sure of the value of keeping pprint as a separate function. What do you think of aliasing pprint to console.log or console.dir instead of keeping a different implementation for it?
Updated•8 years ago
|
Priority: -- → P3
Summary: Escaping breaks pprint → pprint output is quoted and its content is escaped
Reporter | ||
Comment 2•8 years ago
|
||
I just don't see the point in escaping the quotes. I expect the console to show the characters in my string, not some kind of pseudo-string-literal. Neither Chrome nor Edge escape quotes, and Firefox didn't do it before. Why the change?
Comment 3•7 years ago
|
||
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INACTIVE
Reporter | ||
Comment 4•7 years ago
|
||
This is not a bug not present in a supported release of Firefox (i.e. it's present), so I'm reopening it.
Updated•6 years ago
|
Product: Firefox → DevTools
Comment 5•5 years ago
|
||
pprint
was removed in Bug 1361415
Status: REOPENED → RESOLVED
Closed: 7 years ago → 5 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•