Support new-lines in addition to commas to separate commands.

Fixes #5901