Comparison

util/human/io.lua @ 10909:3af3354366eb

util.human.io: Use literal ellipsis instead of \u escape For compat with Lua 5.2 and before
author Kim Alvefur <zash@zash.se>
date Thu, 04 Jun 2020 18:36:47 +0200
parent 10908:18dc4639442e
child 10910:e890b83f08cf
comparison
equal deleted inserted replaced
10908:18dc4639442e 10909:3af3354366eb
134 v = padleft(v, width-1).." "; 134 v = padleft(v, width-1).." ";
135 else 135 else
136 v = padright(v, width); 136 v = padright(v, width);
137 end 137 end
138 elseif #v > width then 138 elseif #v > width then
139 v = v:sub(1, width-1) .. "\u{2026}"; 139 v = v:sub(1, width-1) .. "…";
140 end 140 end
141 table.insert(output, v); 141 table.insert(output, v);
142 end 142 end
143 return table.concat(output, separator); 143 return table.concat(output, separator);
144 end; 144 end;