From: paul Date: Mon, 14 Nov 2016 17:01:42 +0000 (+0000) Subject: fix faulty escaping of line breaks X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=9231cbd7d1aeecbb95cec390d5c107c8a1e74706;p=confetti fix faulty escaping of line breaks svn path=/trunk/; revision=146 --- 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' }