Open Bug 1786315 Opened 3 years ago Updated 3 years ago

Consider displaying line breaks in comments node

Categories

(DevTools :: Inspector, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: nchevobbe, Unassigned, NeedInfo)

Details

Steps to reproduce

  1. Go to https://ffx-devtools-multiline-html-comments.glitch.me/
  2. Inspect the "Inspect me" node to open the inspector
  3. Above the selected node, notice the HTML comment node

Expected results

the comment is displayed as it's written in the source file:

<!-- 
First line
Second line
-->

Actual results

The comment is displayed like <!-- First line Second line-->


This is probably wanted as it looks like a space replaced the line break.
Note that double clicking on the comment will show a text area honoring the line breaks

Severity: -- → S3
Flags: needinfo?(jdescottes)
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.