-
Notifications
You must be signed in to change notification settings - Fork 18k
import/path: issue title #73061
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
Comments
neither will do what you want, but the error makes sense since you can have string literals in actions closing as working as intended. |
not sure what you mean by Exactly what do you think I want it to do ? |
Which does not have a balancing end quote. |
yes - thx
Which is I believe is what the code was trying to do |
Go version
go version 1.24.1
Output of
go env
in your module/workspace:What did you do?
html/template package seems to handle quoted curly braces differently if the pair are on a single line or a split line. Although to be honest I am not sure if maybe the javascript violates any standards
https://go.dev/play/p/bIASN-hohyL
Hopefully this demonstrates the behaviour
I will include the code here also
What did you see happen?
2009/11/10 23:00:00 script1 Parse error template: :3: unterminated quoted string
2009/11/10 23:00:00 script2 ok
The first script that has brace pairs on distinct lines error off whereas the second example succeeds
What did you expect to see?
I would have hoped that both examples were parsed in a similar manner - but I could be mistaken :)
The text was updated successfully, but these errors were encountered: