-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Bug: Incorrect indenting of same level lines #114
Comments
Will look into it, but don't know if I will fix this if this is hard to fix, cause you can easily workaround that by manually check the indentation |
I'm getting this token stream: [
{ "type": "tag", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 4 } }, "val": "div" },
{ "type": "indent", "loc": { "start": { "line": 2, "column": 1 }, "end": { "line": 2, "column": 3 } }, "val": 2 },
{ "type": "tag", "loc": { "start": { "line": 2, "column": 3 }, "end": { "line": 2, "column": 6 } }, "val": "div" },
{ "type": "newline", "loc": { "start": { "line": 3, "column": 1 }, "end": { "line": 3, "column": 3 } } },
{ "type": "tag", "loc": { "start": { "line": 3, "column": 3 }, "end": { "line": 3, "column": 6 } }, "val": "div" },
{ "type": "outdent", "loc": { "start": { "line": 4, "column": 1 }, "end": { "line": 4, "column": 1 } } },
{ "type": "eos", "loc": { "start": { "line": 4, "column": 1 }, "end": { "line": 4, "column": 1 } } }
] So as you can see, it is technically a problem of pug itself 🙁 |
How about adding wontfix and a note on documentation? To warn people when they choose to implement this on already existing codebases. |
That I can definitely do! |
Info
Input
Output or Error
Expected Output
Additional Context
I think it is self explained by the examples why this is an error.
The text was updated successfully, but these errors were encountered: