util/serialization.lua
changeset 11097 ec14d4fce855
parent 10065 5c71693c8345
child 12785 22066b02887f
--- a/util/serialization.lua	Sat Sep 26 18:15:49 2020 +0200
+++ b/util/serialization.lua	Sat Sep 26 23:17:53 2020 +0200
@@ -150,6 +150,10 @@
 
 				if type(fr) == "function" then
 					t = fr(t);
+					if type(t) == "string" then
+						o[l], l = t, l + 1;
+						return l;
+					end
 					if type(tag) == "string" then
 						o[l], l = tag, l + 1;
 					end