google-java-format icon indicating copy to clipboard operation
google-java-format copied to clipboard

Don’t break right after an HTML code tag that’s followed by a literal

Open now opened this issue 4 years ago • 1 comments

If a CODE_OPEN_TAG token is followed by a LITERAL token, break before writing the CODE_OPEN_TAG token if writing it will result in us eating up the remainder of the current line.

Partially fixes #84.

I’m not super happy about the breakBeforeIfAtEndOfLine name, but that’s the best I could come up with right now. I also wish there was a cleaner way of peeking at the next token.

now avatar Aug 01 '21 12:08 now

Could someone please have a look at this? Thanks!

now avatar Aug 27 '21 15:08 now