Fix for tern to correctly handle newlines