New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First line is blank #1913
Comments
Unfortunately I do not think this is a bug in Jade. At least with Jade 1.9.2 it is not reproducible: $ cat <<EOF | bin/jade.js
link(rel='import', href='../../polymer/polymer.html')
polymer-element(name='my-element', attributes='attribute')
template
script(src='my-element.js')
EOF
<link rel="import" href="../../polymer/polymer.html"/><polymer-element name="my-element" attributes="attribute"><template></template><script src="my-element.js"></script></polymer-element> |
Scratch that. |
Hm WTF I can't reproduce it now. |
Hehe, I don't understand. ;) So, this may be more likely a gulp or gulp-jade bug? |
I'd be extremely surprised if this is a current jade bug. This is almost certainly a bug in gulp-jade. The other possibility is that you're using a very old version of jade, it used to be extremely buggy. If you can reproduce it by calling jade directly (or via the CLI), please comment and we will re-open. |
@ForbesLindesay @thasmo I can reproduce it
the same result on mac os and ubuntu server |
Seems like this issue is related to pretty mode. |
Yes I can reproduce it now. The problem is pretty difficult to fix, since we always insert a new line before a block-level tag (if you try |
Converting the following jade template with
gulp-jade
results in the HTML file having a blank, first line:Not sure if this depends on the source file or if this is a general minor jade glitch, but it would be nice to get rid of the blank line.
Any ideas? Thanks!
The text was updated successfully, but these errors were encountered: