Comparison

util/vcard.lua @ 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
parent 8382:e5d00bf4a4d5
child 9059:e1db06a0cc6b
comparison
equal deleted inserted replaced
9057:df18f8398548 9058:35421a289a75
59 t:tag(item.TYPE:upper()):up(); 59 t:tag(item.TYPE:upper()):up();
60 end 60 end
61 end 61 end
62 62
63 if prop_def.props then 63 if prop_def.props then
64 for _,v in pairs(prop_def.props) do 64 for _,prop in pairs(prop_def.props) do
65 if item[v] then 65 if item[prop] then
66 t:tag(v):up(); 66 for _, v in ipairs(item[prop]) do
67 t:text_tag(prop, v);
68 end
67 end 69 end
68 end 70 end
69 end 71 end
70 72
71 if prop_def.value then 73 if prop_def.value then