MODIFIED: When in DOS newline mode, do not emit a \r if the last character was a \r.
MODIFIED: When in DOS newline mode, do not emit a \r if the last
character was a \r.

This fixes issues with HTTP headers, where the HTTP server explicitely
writes \r\n to fullfill the HTTP header standard and the output routine
adds another \r.

mndrix/swipl-devel,jn7163/swipl-devel,koryonik/swipl-devel,mndrix/swipl-devel,koryonik/swipl-devel,edechter/swipl-devel,edechter/swipl-devel,koryonik/swipl-devel,koryonik/swipl-devel,jn7163/swipl-devel,edechter/swipl-devel,edechter/swipl-devel,mndrix/swipl-devel,jn7163/swipl-devel,edechter/swipl-devel,mndrix/swipl-devel,jn7163/swipl-devel,koryonik/swipl-devel,mndrix/swipl-devel,jn7163/swipl-devel