This commit is contained in:
p.kosyh 2010-10-31 09:41:31 +00:00
parent 9c5632cd44
commit a18e801e3e

View file

@ -124,7 +124,7 @@ iface.ways = function(self, str)
end; end;
function get_inv(horiz) function get_inv(horiz)
str = me():inv(); local str = me():inv();
if str then if str then
str = stead.string.gsub(str, '\n$',''); str = stead.string.gsub(str, '\n$','');
-- str = stead.string.gsub(str, stead.delim..'$', '') -- str = stead.string.gsub(str, stead.delim..'$', '')
@ -140,7 +140,7 @@ end
instead.get_inv = get_inv; instead.get_inv = get_inv;
function get_ways() function get_ways()
str = me():ways(); local str = me():ways();
if str and str ~= '' then if str and str ~= '' then
str = stead.string.gsub(str, '\n$',''); str = stead.string.gsub(str, '\n$','');
str = stead.string.gsub(str, '\\?[\\'.. stead.delim ..']', { [stead.delim] = game.gui.ways_delim }); str = stead.string.gsub(str, '\\?[\\'.. stead.delim ..']', { [stead.delim] = game.gui.ways_delim });