Comparison

util/rsm.lua @ 10763:e0e2ae050d65

util.rsm: Explicitly serialize numbers in correct format
author Kim Alvefur <zash@zash.se>
date Thu, 23 Apr 2020 18:40:57 +0200
parent 10761:b53193bb21cc
child 10764:1fbfcc2f6805
comparison
equal deleted inserted replaced
10762:4fc224c97986 10763:e0e2ae050d65
59 if data == true then 59 if data == true then
60 st:tag("before"):up(); 60 st:tag("before"):up();
61 else 61 else
62 st:tag("before"):text(tostring(data)):up(); 62 st:tag("before"):text(tostring(data)):up();
63 end 63 end
64 end 64 end;
65 max = function (st, data)
66 st:tag("max"):text(inttostr(data)):up();
67 end;
68 count = function (st, data)
69 st:tag("count"):text(inttostr(data)):up();
70 end;
65 }, { 71 }, {
66 __index = function(_, name) 72 __index = function(_, name)
67 return function(st, data) 73 return function(st, data)
68 st:tag(name):text(tostring(data)):up(); 74 st:tag(name):text(tostring(data)):up();
69 end 75 end