You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The opening delimiter of a text block cannot be followed by anything useful, so it will always be on a line of its own.
I assume this is a consequence of the rectangle rule, and I understand this rule is kind of the core principle of g-j-f, but in cases like this (and #19) I would much prefer g-j-f to give priority to readability and intuitive formatting.
I assume this is a consequence of the rectangle rule, and I understand this rule is kind of the core principle of g-j-f
I think that's a lot of it. There was a bunch of discussion with the owners of the Google Java Style Guide before deciding on the current formatting. I understand the preference for keeping """ on the previous line, and I agree there's some overlap with #19, but the current behaviour is what we've settled on for now.
Also this is perhaps just a typo, but the output should be something like the following, with both delimiters aligned:
The opening delimiter of a text block cannot be followed by anything useful, so it will always be on a line of its own.
I assume this is a consequence of the rectangle rule, and I understand this rule is kind of the core principle of g-j-f, but in cases like this (and #19) I would much prefer g-j-f to give priority to readability and intuitive formatting.
For the record, see also G4 in the Programmer’s Guide to Text Blocks.
input:
expected:
actual:
The text was updated successfully, but these errors were encountered: