[CONUTILS] In ConWrite(), emit an \r when a \n is encountered but not already precede...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Thu, 23 Aug 2018 15:04:53 +0000 (17:04 +0200)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Thu, 23 Aug 2018 15:04:53 +0000 (17:04 +0200)
commitb277cbdf222a67f7bf4e7acc246189be91474aa0
treed1cf9c5a673296de81e6105a93b52c7c7eb2b172
parent78b6e43d22331d29feb5bdd9afc754c1de15f1db
[CONUTILS] In ConWrite(), emit an \r when a \n is encountered but not already preceded by \r.

And, don't emit \r\n when an \r alone is encountered.
This fixes the problem of extra newlines appearing when redirecting
"more" output to a file.

CORE-14592
sdk/lib/conutils/outstream.c