From e6f7318a6ca2681c7abb4a4476d188cc3a0ae497 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Tue, 13 Jun 2017 13:52:41 +0200 Subject: mcolor: normalize CRLF --- mcolor | 1 + 1 file changed, 1 insertion(+) (limited to 'mcolor') diff --git a/mcolor b/mcolor index ec07e31..2712db3 100755 --- 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 } -- cgit 1.4.1