# HG changeset patch # User Kim Alvefur # Date 1404886996 -7200 # Node ID 94c3cf8293a77a7c72ea2745ae675bacf3f9b676 # Parent b6a47c7a496a34e7370e9720a02cbe173031e230 util.vcard: Add support for uri types in vcard4 diff -r b6a47c7a496a -r 94c3cf8293a7 util/vcard.lua --- 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