Diff

mod_mam/rsm.lib.lua @ 1102:bfde5e5318d7

mod_mam/rsm.lib: Fix parsing of empty before tag
author Kim Alvefur <zash@zash.se>
date Mon, 08 Jul 2013 12:26:19 +0200
parent 1101:479df3e0b012
child 1401:1a5ae0dee157
line wrap: on
line diff
--- a/mod_mam/rsm.lib.lua	Mon Jul 08 12:19:53 2013 +0200
+++ b/mod_mam/rsm.lib.lua	Mon Jul 08 12:26:19 2013 +0200
@@ -18,7 +18,8 @@
 	element_parsers = {
 		after = xs_string;
 		before = function(st)
-			return st:get_text() or true;
+			local text = st:get_text();
+			return text == "" or text;
 		end;
 		max = xs_int;
 		index = xs_int;