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:
parent
f775146ffd
commit
56b01bcc86
1 changed files with 2 additions and 2 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue