Closed marc0l92 closed 3 years ago
Feel free. But removing "all" newlines seems too much to me. Wouldn't it be enough to remove the last one?
I decided to remove all the new line in order to make the code work also when you decide to upgrade the library that prettify the json object to HTML.
Issue description
The 'json' helper function adds an extra new line at the end of the parsed object. This happens because the parsed result is inside the
<pre>
HTML tag.Example
Proposed solution
Remove the new line from the parsed 'json' objects: in the file
/handlebars/helpers.js
modify the line 171 in order to make it like:If you want I can submit a Pull Request.