projects
/
confetti
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5736fc8
)
fix faulty escaping of line breaks
author
paul
<paul@plutz.net>
Mon, 14 Nov 2016 17:01:42 +0000
(17:01 +0000)
committer
paul
<paul@plutz.net>
Mon, 14 Nov 2016 17:01:42 +0000
(17:01 +0000)
svn path=/trunk/; revision=146
actions/update_card.sh
patch
|
blob
|
history
diff --git
a/actions/update_card.sh
b/actions/update_card.sh
index
c2a4a71
..
a1143c3
100755
(executable)
--- 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'
}