diff --git a/tradecalc.py b/tradecalc.py index 9228544d..c156db7d 100644 --- a/tradecalc.py +++ b/tradecalc.py @@ -217,7 +217,7 @@ def detail(self, tdenv): def genSubValues(): for hop in hops: for (tr, qty) in hop[0]: - yield tr.name() + yield len(tr.name()) longestNameLen = max(genSubValues()) text = self.str()