HtmlBeautify() adding extra newline #36

Closed
johvik opened this Issue Dec 28, 2013 · 4 comments

Projects

None yet

2 participants

@johvik
Contributor
johvik commented Dec 28, 2013

When formatting html files it keeps adding extra newlines at the end of the file.

Calling a format on this input:

  1 <html>
  2
  3 </html>

Produces:

  1 <html>
  2
  3 </html>
  4

More calls to the format function will keep increasing the number of extra lines.
I've tried to update to the latest version (my previous version was cloned in the beginning of December). Both these versions has this issue.

@maksimr
Owner
maksimr commented Dec 28, 2013

Thsnks! You are right! I try fix it.

@johvik
Contributor
johvik commented Dec 29, 2013

I think this is caused by the jsbeautify lib, because there are testcases for this which started failing with commit b346e74.
Edit: Maybe not... :P

@maksimr
Owner
maksimr commented Dec 29, 2013

You are right. Problem in html-beautify from js-beautify lib

@maksimr maksimr added a commit that referenced this issue Dec 30, 2013
@maksimr HtmlBeautify() adding extra newline (relate #36)
Fix print function in plugin/beautify.js
f3484e8
@maksimr
Owner
maksimr commented Dec 30, 2013

fixed

@maksimr maksimr closed this Dec 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment