# HG changeset patch # User Kim Alvefur # Date 1344536335 -7200 # Node ID c3e2b95b5b0b5b7e23e85efc51d476e58c8e91ee # Parent 6297d658769fdf0112aa9022ba19853d9f0275a3 util.vcard: Iterate on tags instead of items (thanks mva) diff -r 6297d658769f -r c3e2b95b5b0b util/vcard.lua --- a/util/vcard.lua Wed Jul 04 03:37:16 2012 +0200 +++ b/util/vcard.lua Thu Aug 09 20:18:55 2012 +0200 @@ -238,8 +238,8 @@ elseif prop_def.values then --array local value_names = prop_def.values; if value_names.behaviour == "repeat-last" then - for i=1,#item do - t_insert(prop, item[i]:get_text() or ""); + for i=1,#item.tags do + t_insert(prop, item.tags[i]:get_text() or ""); end else for i=1,#value_names do