ttext gui: cap size of labels - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit eaa91683da89096827a25d87088e71ad741cd167 DIR parent 8e65df3ae736e9ef29efeadb1c72ad36dd3bb910 HTML Author: ThomasV <thomasv@gitorious> Date: Tue, 31 Mar 2015 22:07:32 +0200 ttext gui: cap size of labels Diffstat: M gui/text.py | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) --- DIR diff --git a/gui/text.py b/gui/text.py t@@ -118,6 +118,8 @@ class ElectrumGui: time_str = 'pending' label, is_default_label = self.wallet.get_label(tx_hash) + if len(label) > 40: + label = label[0:37] + '...' self.history.append( format_str%( time_str, label, format_satoshis(value, whitespaces=True), format_satoshis(balance, whitespaces=True) ) )