Closed Bug 1612956 Opened 5 years ago Closed 5 years ago

Preview isn't pre-formatting whitespace

Categories

(DevTools :: Console, defect, P4)

defect

Tracking

(firefox74 fixed)

RESOLVED FIXED
Firefox 74
Tracking Status
firefox74 --- fixed

People

(Reporter: Harald, Assigned: samarsault, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug)

Attachments

(3 files)

Attached image image.png

STR: Type " ".padStart(10, " ") in Console.

AR: " " in preview, 10-character " " in executed output.

ER: 10-character " " in both

(TIL: Code preview in bugzilla also isn't formatting whitespace correctly.)

Good first bug as this fix should be CSS only.

Keywords: good-first-bug

I want to take this issue

Hello Pranav, that's nice of you to ask, but this is tagged as a good-first-bug, and you are already assigned to a few bugs.
Let's keep this one for other contributors :)

Mentor: nchevobbe

I would like to work on this.

Thanks Samarjeet,

The bug is yours :)
You can read how to setup the work environment on https://docs.firefox-dev.tools/getting-started/
I also recommend you to use the Browser Toolbox (https://developer.mozilla.org/en-US/docs/Tools/Browser_Toolbox) to debug this issue; it's like devtools for devtools, so you'd be able to check if it's indeed a CSS issue.
Let us know what you find!

Assignee: nobody → thelehhman
Status: NEW → ASSIGNED
Attachment #9124432 - Attachment description: Bug 1612956 - Console preview pre-format whitespace → Bug 1612956 - Don't pre-format whitespace in Console eager evaluation. r=nchevobbe.
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7554cfe059b4
Don't pre-format whitespace in Console eager evaluation. r=nchevobbe.
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 74
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: