Fix partial formatting bug regions endling on newlines.

Formatting a range that includes a terminating newline shouldn't cause the next
statement to be formatted.

This changes the formatter to treat newlines as trailing trivia of the last
token on the previous line, instead of leading trivia of the first token on the
next line.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=105326621
10 files changed
tree: 6c941afe0d8e6505a78a9b9104ae0d1db4c61742
  1. core/
  2. idea_plugin/
  3. scripts/
  4. .gitignore
  5. .travis.yml
  6. CONTRIBUTING.md
  7. LICENSE
  8. pom.xml
  9. README.md
README.md

google-java-format

Build Status

google-java-format is a program that reformats Java source code to comply with Google Java Style.