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
Spurious invalid indentation exception #50
Comments
Are you indenting with tabs or spaces? |
I'm indenting with two spaces. |
Are you developing on Windows or Mac/Linux? I'm wondering if there's a line-ending issue confusing the parser. I'm on Mac, so each line ends with a \n character. |
Ok, I can see it now; at some point I indented with 4 spaces (the h1) and then tried to use 2 space indentation for the contents of the p element. I'm able to make progress now, so that's cool. |
At the very least, I'd love to see a more useful error message to help me diagnose this, i.e., "expected 4 spaces, saw 2 spaces" or something. |
When compiling the following template:
which is (I believe) valid; I get an "invalid indentation" exception on line 4.
I've pasted the same text into http://naltatis.github.io/jade-syntax-docs/ and it generates my expected HTML output.
The text was updated successfully, but these errors were encountered: