account for newline in sourcemap prefix

thanks dellekappa.  fixes #17631