summaryrefslogtreecommitdiff
path: root/src/format.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-21 18:05:26 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-21 18:05:26 -0400
commit2f1b1c8ceded9bff5fa26d0899da04180f539e94 (patch)
treecf066f835890abbae40f54fb0ac848735c9b88cb /src/format.cc
parent4ea4fa24a449c0e6988845d8de7d041d0f6a54f5 (diff)
downloadfork-ledger-2f1b1c8ceded9bff5fa26d0899da04180f539e94.tar.gz
fork-ledger-2f1b1c8ceded9bff5fa26d0899da04180f539e94.tar.bz2
fork-ledger-2f1b1c8ceded9bff5fa26d0899da04180f539e94.zip
Change weighting of account-name abbreviation
Parent accounts are abbreviated even more, so that child accounts can show more text.
Diffstat (limited to 'src/format.cc')
-rw-r--r--src/format.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/format.cc b/src/format.cc
index 946dcf80..93ce4ed4 100644
--- a/src/format.cc
+++ b/src/format.cc
@@ -540,7 +540,7 @@ string format_t::truncate(const unistring& ustr,
else
adjust = std::size_t
(std::ceil(double(overflow) *
- ((double(*i + counter) * double(iteration)) /
+ ((double(*i + counter*3) * double(iteration)) /
(double(len_minus_last) - double(counter)))));
DEBUG("format.abbrev", "Weight calc: (" << overflow
<< " * (((" << *i << " + " << counter << ") * "