diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-21 18:05:26 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-21 18:05:26 -0400 |
commit | 2f1b1c8ceded9bff5fa26d0899da04180f539e94 (patch) | |
tree | cf066f835890abbae40f54fb0ac848735c9b88cb /src/format.cc | |
parent | 4ea4fa24a449c0e6988845d8de7d041d0f6a54f5 (diff) | |
download | fork-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.cc | 2 |
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 << ") * " |