slight fix for \r handling

don't emit the '\r' character in the resulting text, as it confuses
processing. also, explicitly emit a separate 'linebreak' result.