Make object short notation work if there's a linefeed before end

Should be a quick review, ping @rwaldron / @jugglinmike

Fixes gh-1923