Software /
code /
prosody
Changeset
6308:94c3cf8293a7
util.vcard: Add support for uri types in vcard4
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 09 Jul 2014 08:23:16 +0200 |
parents | 6307:b6a47c7a496a |
children | 6313:8bd486b6e5ec |
files | util/vcard.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/util/vcard.lua Wed Jul 09 02:06:37 2014 +0200 +++ b/util/vcard.lua Wed Jul 09 08:23:16 2014 +0200 @@ -348,6 +348,8 @@ local prop_def = vCard4_dtd[typ]; if prop_def == "text" then t:tag("text"):text(item[1]):up(); + elseif prop_def == "uri" then + t:tag("uri"):text(item[1]):up(); elseif type(prop_def) == "table" then if prop_def.values then for i, v in ipairs(prop_def.values) do