Skip to content
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

Fix trailing whitespace after class #442

Merged
merged 3 commits into from May 5, 2023
Merged

Fix trailing whitespace after class #442

merged 3 commits into from May 5, 2023

Conversation

Shinigami92
Copy link
Member

close #439

@Shinigami92 Shinigami92 added the type: bug Functionality that does not work as intended/expected label May 3, 2023
@Shinigami92 Shinigami92 self-assigned this May 3, 2023
@Shinigami92
Copy link
Member Author

The example token stream is

[
{"type":"tag","loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":5}},"val":"html"},
{"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":7}},"val":"body"},
{"type":"indent","loc":{"start":{"line":3,"column":1},"end":{"line":3,"column":5}},"val":4},
{"type":"class","loc":{"start":{"line":3,"column":5},"end":{"line":3,"column":13}},"val":"wrapper"},
{"type":"text","loc":{"start":{"line":3,"column":13},"end":{"line":3,"column":14}},"val":" "},
{"type":"indent","loc":{"start":{"line":4,"column":1},"end":{"line":4,"column":7}},"val":6},
{"type":"class","loc":{"start":{"line":4,"column":7},"end":{"line":4,"column":17}},"val":"container"},
{"type":"text","loc":{"start":{"line":4,"column":18},"end":{"line":4,"column":25}},"val":"Content"},
{"type":"outdent","loc":{"start":{"line":5,"column":1},"end":{"line":5,"column":5}}},
{"type":"class","loc":{"start":{"line":5,"column":5},"end":{"line":5,"column":13}},"val":"wrapper"},
{"type":"text","loc":{"start":{"line":5,"column":14},"end":{"line":5,"column":15}},"val":" "},
{"type":"indent","loc":{"start":{"line":6,"column":1},"end":{"line":6,"column":7}},"val":6},
{"type":"class","loc":{"start":{"line":6,"column":7},"end":{"line":6,"column":17}},"val":"container"},
{"type":"text","loc":{"start":{"line":6,"column":18},"end":{"line":6,"column":25}},"val":"Content"},
{"type":"outdent","loc":{"start":{"line":7,"column":1},"end":{"line":7,"column":1}}},
{"type":"outdent","loc":{"start":{"line":7,"column":1},"end":{"line":7,"column":1}}},
{"type":"outdent","loc":{"start":{"line":7,"column":1},"end":{"line":7,"column":1}}},
{"type":"eos","loc":{"start":{"line":7,"column":1},"end":{"line":7,"column":1}}}
]

There are still trailing whitespaces after the classes, need to investigate later

@Shinigami92 Shinigami92 marked this pull request as ready for review May 5, 2023 16:40
@Shinigami92 Shinigami92 merged commit 7773ffa into main May 5, 2023
11 checks passed
@Shinigami92 Shinigami92 deleted the issue-439 branch May 5, 2023 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Functionality that does not work as intended/expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Space at the end of an element causes | and newlines to be inserted
1 participant