Changeset

310:c3e2b95b5b0b

util.vcard: Iterate on tags instead of items (thanks mva)
author Kim Alvefur <zash@zash.se>
date Thu, 09 Aug 2012 20:18:55 +0200 (2012-08-09)
parents 309:6297d658769f
children 311:de6e59e751eb
files util/vcard.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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