util.vcard: Add support for uri types in vcard4
authorKim Alvefur <zash@zash.se>
Wed, 09 Jul 2014 08:23:16 +0200
changeset 6308 94c3cf8293a7
parent 6307 b6a47c7a496a
child 6313 8bd486b6e5ec
util.vcard: Add support for uri types in vcard4
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