-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
[1.6.x] Fix whitespaces after else{...}
and elseif{...}
is not shown
#712
[1.6.x] Fix whitespaces after else{...}
and elseif{...}
is not shown
#712
Conversation
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.
LGTM, however I think the last whitespaceNoBreak?
has to be removed now from
* elseCall : whitespaceNoBreak? "else" expressionPart whitespaceNoBreak? |
or not?
Or actually... isn't following correct actually?
* elseCall : whitespaceNoBreak? "else" whitespaceNoBreak? expressionPart
Oh, I didn't notice the document. As you say, it has to be changed as the following. Thanks.
|
Furthermore, I noticed that elseIfCall has the same bug as elseCall. I'll fix it too.
|
I also fixed a bug in elseIfCall. If we need to split this pull request, I'll split it. Please let me know. |
else{...}
is not showingelse{...}
is not shown
else{...}
is not shownelse{...}
and elseif{...}
is not shown
Perfect, thanks! |
@Mergifyio backport main |
✅ Backports have been created
|
[main] Fix whitespaces after `else{...}` and `elseif{...}` is not shown (backport #712) by @yousuketto
Thanks! This is now included in just released twirl 1.6.3 and 2.0.2 |
else{...}
and elseif{...}
is not shownelse{...}
and elseif{...}
is not shown
It's so helpful. Thanks for releasing. |
The parser does not recognize whitespace after
else {...}
as a plain, so it is not showing.Refs #711