mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit e6f7318a6ca2681c7abb4a4476d188cc3a0ae497
parent 4ac581b13113bd7e13b438f52c3f28b18b95bfae
Author: Leah Neukirchen <leah@vuxu.org>
Date:   Tue, 13 Jun 2017 13:52:41 +0200

mcolor: normalize CRLF

Diffstat:
mcolor | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/mcolor b/mcolor @@ -6,6 +6,7 @@ function fg(c, s) { return sprintf("\033[38;5;%03dm%s\033[0m", c, s) } function so(s) { return sprintf("\033[1m%s\033[0m", s) } BEGIN { hdr = 1; if (match(ENVIRON["TERM"], "^(dumb|network|9term)")) dumb = 1 } dumb { print; next } +/\r$/ { sub(/\r$/, "") } /^\014$/ { nextmail = 1; next } /^$/ { hdr = 0 } /^-- $/ { ftr = 1 }