Changeset

9058:35421a289a75

util.vcard: Include values of 'properties' (eg PHOTO TYPE) in vcard-temp serialization
author Kim Alvefur <zash@zash.se>
date Wed, 25 Jul 2018 23:54:48 +0200
parents 9057:df18f8398548
children 9059:e1db06a0cc6b
files util/vcard.lua
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/util/vcard.lua	Tue Jul 17 20:37:56 2018 +0100
+++ b/util/vcard.lua	Wed Jul 25 23:54:48 2018 +0200
@@ -61,9 +61,11 @@
 		end
 
 		if prop_def.props then
-			for _,v in pairs(prop_def.props) do
-				if item[v] then
-					t:tag(v):up();
+			for _,prop in pairs(prop_def.props) do
+				if item[prop] then
+					for _, v in ipairs(item[prop]) do
+						t:text_tag(prop, v);
+					end
 				end
 			end
 		end