From 9231cbd7d1aeecbb95cec390d5c107c8a1e74706 Mon Sep 17 00:00:00 2001 From: paul Date: Mon, 14 Nov 2016 17:01:42 +0000 Subject: [PATCH] fix faulty escaping of line breaks svn path=/trunk/; revision=146 --- actions/update_card.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/update_card.sh b/actions/update_card.sh index c2a4a71..a1143c3 100755 --- a/actions/update_card.sh +++ b/actions/update_card.sh @@ -31,7 +31,7 @@ attfile="$_DATA/mappings/attendance" vcf_escape(){ for each in "$@"; do printf %s\\n "$each" \ - | sed -r ':X;$!{N;bX}; s;\r\n;\n;g; s;([\n\;,\\]);\\\1;g;' + | sed -r ':X;$!{N;bX}; s;\r\n;\n;g; s;([;,\\]);\\\1;g; s;\n;\\n;g;' done \ | sed -r ':X;$!{N;bX}; s;\n;\;;g' } -- 2.39.2