Closed Bug 1630057 Opened 4 years ago Closed 4 years ago

source formater isn't working properly for some scripts

Categories

(DevTools :: Debugger, defect)

75 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1235247

People

(Reporter: martin.chomage, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0

Steps to reproduce:

go on youtube,
open the script from https://www.youtube.com/yts/jsbin/desktop_polymer_inlined_html_polymer_flags_v2-vfl3UVLCd/desktop_polymer_inlined_html_polymer_flags_v2.js
click on the "{}" button

Actual results:

the beginning of the script is properly formated and indented
but at some point, no indentation is done at all, everything is aligned to the left

Expected results:

when i try to pretify the same code there https://prettier.io/playground/
the code is properly formated and indented, i expext firefox to work too

Resetting severity to default of --.

Hi,
I don't have the technical knowledge to confirm this issue but I'll add product and component so the team can make some research on it. Hopefully, someone with a more deep understanding of this matter can help. Feel free to route this ticket to the corresponding team.

Regards,
Jerónimo.

Component: Untriaged → General
Flags: needinfo?(sdeckelmann)
Product: Firefox → Core
Component: General → Source Editor
Flags: needinfo?(sdeckelmann)
Product: Core → DevTools
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
Component: Source Editor → Debugger
You need to log in before you can comment on or make changes to this bug.