gildas-lormeau / JSONVue

Fork of JSONView for Chromium-based browsers
https://chrome.google.com/webstore/detail/chklaanhfefbnpoihckbnefhakgolnmc
Other
1.59k stars 615 forks source link

Newline characters are not rendered properly as HTML #66

Closed stewx closed 2 years ago

stewx commented 8 years ago

The sequence "\n" is not being rendered correctly.

A string like "Hello\nJSON\nworld!" is rendered as the HTML

    <span class="type-string">"Hello
    JSON
    world!"</span>

(The newlines here are totally ignored by browsers since this is all within a single block element)

It should be rendered to HTML like:

<span class="type-string">"Hello\nJSON\nworld!"</span>

gildas-lormeau commented 2 years ago

it will be fixed in the next version