projects
/
confetti
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b300b0
)
dirty fix: do not mess up with empty tags
author
paul
<paul@plutz.net>
Fri, 4 Nov 2016 13:23:10 +0000
(13:23 +0000)
committer
paul
<paul@plutz.net>
Fri, 4 Nov 2016 13:23:10 +0000
(13:23 +0000)
svn path=/trunk/; revision=135
pages/cards.sh
patch
|
blob
|
history
diff --git
a/pages/cards.sh
b/pages/cards.sh
index
106484b
..
08b88b9
100755
(executable)
--- a/
pages/cards.sh
+++ b/
pages/cards.sh
@@
-142,7
+142,7
@@
vcf_parse() {
tag=*) ot=''
printf %s "$line" \
| sed -r 's:^tag=::;s:\;([A-Z+_-]+="[^"]+"|[A-Z+_-]+=[^\;]+):\n\1:g;' \
- | sed -r
's:([A-Z+_-]+)="?(.*)"?:tag\[\1\]="\2":g
' \
+ | sed -r
n 's:([A-Z+_-]+)="?(.+)"?:tag\[\1\]="\2":gp
' \
| sed -r '/^ *$/d' \
| sort |while read -r tag; do
nt="$(printf %s "$tag" |sed -r 's:^tag\[([A-Z+_-]+)\]="(.*)"$:\1:')"