]> git.plutz.net Git - confetti/commitdiff
dirty fix: do not mess up with empty tags
authorpaul <paul@plutz.net>
Fri, 4 Nov 2016 13:23:10 +0000 (13:23 +0000)
committerpaul <paul@plutz.net>
Fri, 4 Nov 2016 13:23:10 +0000 (13:23 +0000)
svn path=/trunk/; revision=135

pages/cards.sh

index 106484b00cd41af64a6652fe305ad58e99c448b3..08b88b94e11b75e8eeeab786df667adb1912af3c 100755 (executable)
@@ -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 -rn '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:')"