Closed Bug 1248380 Opened 8 years ago Closed 7 years ago

Raw Data view should wrap when data has no newlines

Categories

(DevTools :: JSON Viewer, defect, P3)

44 Branch
defect

Tracking

(firefox56 fixed)

RESOLVED FIXED
Firefox 56
Tracking Status
firefox56 --- fixed

People

(Reporter: Gijs, Assigned: Oriol)

References

Details

(Whiteboard: [btpp-backlog])

Attachments

(1 file)

Looking at:

https://brasstacks.mozilla.com/orangefactor/api/bybug?startday=2015-12-01&endday=2016-02-15&bugid=1192153

it is just one massively long line of text.

Instead, the view should wrap - similar to how the data would look if you had turned off the JSON view.
Doing bug triage with Emma.
Filter on LOBSTER-THERMADOR
Priority: -- → P3
Whiteboard: [btpp-backlog]
Attached patch json-wrap.patchSplinter Review
This is just white-space:pre-wrap

Also adding a bit of margin, otherwise wrapped text touches the screen side and it does not look nice.

Link in comment 0 needs credentials, I tested with https://hg.mozilla.org/mozilla-central/json-pushes?changeset=f8bdceb55c9d&full=1
Assignee: nobody → oriol-bugzilla
Status: NEW → ASSIGNED
Attachment #8880195 - Flags: review?(odvarko)
Maybe text should only wrap in non-prettified JSON? Wrapping prettified JSON breaks the pretty indentations.
Comment on attachment 8880195 [details] [diff] [review]
json-wrap.patch

Review of attachment 8880195 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good!

R+

Thanks
Honza
Attachment #8880195 - Flags: review?(odvarko) → review+
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/b7ab57751565
Wrap long lines in Raw Data view. r=Honza
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/b7ab57751565
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 56
Depends on: 1399265
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: