diff --git a/silkaj/tx_history.py b/silkaj/tx_history.py index ea86cb4e9a81c9bb34ad672f920078debb6f3c60..4a2408935eed635c43355f0b2021c048b6cc920e 100644 --- a/silkaj/tx_history.py +++ b/silkaj/tx_history.py @@ -257,6 +257,10 @@ def prefix(tx_addresses, outputs, occurence): """ if tx_addresses == "Total": return "\n" + + # In case of a received tx, 'outputs' is not defined, then add a breakline + # between the pubkeys except for the first occurence for multi-sig support if not outputs: - return "" + return "\n" if occurence > 0 else "" + return "\n" if occurence + len(outputs) > 1 else ""