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 nested partial indentation and custom spec tests #153

Merged
merged 3 commits into from
Nov 21, 2023

Conversation

agentgt
Copy link
Contributor

@agentgt agentgt commented Nov 21, 2023

@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).

@samskivert
Copy link
Owner

Thanks!

@samskivert samskivert merged commit 57f182c into samskivert:master Nov 21, 2023
4 checks passed
boolean last;
if (nseg instanceof BlockSegment){
BlockSegment bs = (BlockSegment) nseg;
last = bs.isStandaloneStart();
Copy link
Contributor Author

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();
Copy link
Contributor Author

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.

@samskivert
Copy link
Owner

Feel free to send a new PR with the tweaks.

@agentgt
Copy link
Contributor Author

agentgt commented Nov 21, 2023

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.

@agentgt agentgt deleted the custom_spec_tests branch November 30, 2023 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants