1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2025-02-21 10:20:05 +00:00

minor fix in table format

This commit is contained in:
Adrien Waksberg 2016-11-05 10:14:08 +01:00
parent f775146ffd
commit 56b01bcc86

View file

@ -153,7 +153,7 @@ class Cli
data.each do |k, v|
next if k == :id or k == :otp
v[:length] = item.send(k.to_s).length + 3 if item.send(k.to_s).to_s.length > v[:length]
v[:length] = item.send(k.to_s).length + 3 if item.send(k.to_s).to_s.length >= v[:length]
end
end
data[:id][:length] = items.length.to_s.length + 2 if items.length.to_s.length > data[:id][:length]