Diff

util/vcard.lua @ 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
parent 6265:f8945a030bc6
child 6400:95241c0f9244
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