Fix #241, check if dot after newline, and change indentation
Merge pull request #241 from johnkpaul/fix_issue_241

Beautifying function call chains that end with a callback results in incorrect formatting