-
Notifications
You must be signed in to change notification settings - Fork 128
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 nested partial indentation and custom spec tests #153
Conversation
Thanks! |
boolean last; | ||
if (nseg instanceof BlockSegment){ | ||
BlockSegment bs = (BlockSegment) nseg; | ||
last = bs.isStandaloneStart(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops this should be inverted.
} | ||
//segs[ii-1] = prev.trimTrailBlank(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Meant to remove this comment and add a new one discussing how the previous segment should not be trimmed.
Feel free to send a new PR with the tweaks. |
I will. I'm working on inheritance but I will put a separate commit for the tweak as well as some testing since a test should have found that 😄 . Inheritance should hopefully not be too hard. Based on experience the hardest part of Mustache is the whitespace handling and now that I think that is mostly fixed it should be smooth sailing. |
@samskivert
I fixed the previous nested indentation.
I'm sorry it took me longer than I promised.
I added custom spec tests in
src/main/resources/custom/spec
.BTW this time I tried to sick more with the projects formatting.
What I plan on doing is eventually putting in the Eclipse Maven formatter plugin which I have used with great success in the past: https://code.revelc.net/formatter-maven-plugin/
(no it doesn't require Eclipse its just that Eclipse headless formatter is the most powerful one where as the others are opinionated).