From 7a7add8d80b031499ec136841baef8e27bdbaf6d Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Sat, 29 Nov 2025 09:12:48 +0000 Subject: [PATCH] proto.xmr.tw.unspent: fix right fill for account line --- mmgen/proto/xmr/tw/unspent.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mmgen/proto/xmr/tw/unspent.py b/mmgen/proto/xmr/tw/unspent.py index 30247039..31f45db5 100755 --- a/mmgen/proto/xmr/tw/unspent.py +++ b/mmgen/proto/xmr/tw/unspent.py @@ -128,16 +128,19 @@ class MoneroTwUnspentOutputs(MoneroTwView, TwUnspentOutputs): def gen_display(self, data, cw, fs, color, fmt_method): fs_acct = '{:>4} {:6} {:7} {}' - yield fs_acct.format('', 'Wallet', 'Account', 'Balance').ljust(self.term_width) + # 30 = 4(col1) + 6(col2) + 7(col3) + 8(iwidth) + 1(len('.')) + 4(spc) + rfill = ' ' * (self.term_width - self.proto.coin_amt.max_prec - 30) + yield fs_acct.format('', 'Wallet', 'Account', ' Balance').ljust(self.term_width) for n, d in enumerate(self.accts_data): yield fs_acct.format( str(n + 1) + ')', d.idx.fmt(6, color=color), d.acct_idx.fmt(7, color=color), - d.total.hl2( + d.total.fmt2( + 8, # iwidth color = color, color_override = None if d.total == d.unlocked_total else 'orange' - )).ljust(self.term_width) + )) + rfill for v in d.data.values(): yield fmt_method(None, v.data, cw, fs, color, None, None)