fix \r\n as plain \n - ics2txt - convert icalendar .ics file to plain text HTML git clone git://bitreich.org/ics2txt git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ics2txt DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit 90e6c1b1e36c4165ea9a20fa1c9fae85bb5152ec DIR parent 24985c575e833254adb79215584947a601569ea1 HTML Author: Josuah Demangeon <me@josuah.net> Date: Thu, 25 Jun 2020 21:15:26 +0200 fix \r\n as plain \n Diffstat: M ics2tsv | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) --- DIR diff --git a/ics2tsv b/ics2tsv @@ -71,6 +71,10 @@ BEGIN { printf("\n") } +{ + gsub("\r", "") +} + /^ / { ev[type] = ev[type] substr($0, 2, length($0) - 1) next