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

Try to not split inline tags in javadoc formatter

Open dansanduleac opened this issue 4 years ago • 1 comments

I tend to optimize around putting the entire tag on a single line. Splitting on the space is as reasonable as anything, but I would prefer to avoid breaking them even if it leaves shorter lines before/after. Sorry I missed your comment when you posted it!

Originally posted by @carterkozak in https://github.com/palantir/gradle-consistent-versions/pull/283

dansanduleac avatar Oct 17 '19 22:10 dansanduleac

So, I've made it such that inline tags stay together in #125. Not sure if we need to do more work for HTML tags, but I don't think so. @carterkozak ok to close do you think?

dansanduleac avatar Jan 14 '20 18:01 dansanduleac