Change weighting of account-name abbreviation

Parent accounts are abbreviated even more, so that child accounts can
show more text.
This commit is contained in:
John Wiegley 2010-06-21 18:05:26 -04:00
parent 4ea4fa24a4
commit 2f1b1c8ced
6 changed files with 9 additions and 9 deletions

View file

@ -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 << ") * "

View file

@ -4,8 +4,8 @@ reg --account=commodity
Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00
Income:Dividends:Vanguard:VMMXX $-0.35
>>>1
07-Feb-02 RD VMMXX VM:As:Inve:Vangu:VMMXX 0.350 VMMXX 0.350 VMMXX
07-Feb-02 RD VMMXX $:In:Divi:Vangua:VMMXX $-0.35 $-0.35
07-Feb-02 RD VMMXX VM:As:Inv:Vangua:VMMXX 0.350 VMMXX 0.350 VMMXX
07-Feb-02 RD VMMXX $:In:Div:Vanguar:VMMXX $-0.35 $-0.35
0.350 VMMXX
>>>2
=== 0

View file

@ -24,13 +24,13 @@ reg --empty
Assets:Cash $-10.00 0
08-Jan-01 January Expenses:One:Books $10.00 $10.00
Expenses:One:Two:Books $10.00 $20.00
Expe:On:Tw:Three:Books $10.00 $30.00
Ex:One:Two:Three:Books $10.00 $30.00
Assets:Cash $-30.00 0
08-Jan-01 January Assets:Cash 0 0
Income:Books 0 0
08-Jan-01 January Assets:Cash $30.00 $30.00
Income:One:Books $-10.00 $20.00
Income:One:Two:Books $-10.00 $10.00
Inc:On:Two:Three:Books $-10.00 0
In:One:Two:Three:Books $-10.00 0
>>>2
=== 0

View file

@ -22,11 +22,11 @@ reg --account=payee
>>>1
08-Jan-01 January January:Expenses:Books $10.00 $10.00
08-Jan-01 January January:Assets:Cash $-10.00 0
08-Jan-31 End of January End of J:Expense:Books $10.00 $10.00
08-Jan-31 End of January End of :Expenses:Books $10.00 $10.00
08-Jan-31 End of January End of Jan:Assets:Cash $-10.00 0
08-Feb-01 February Februar:Expenses:Books $20.00 $20.00
08-Feb-01 February February:Assets:Cash $-20.00 0
08-Feb-28 End of February End of F:Expense:Books $20.00 $20.00
08-Feb-28 End of February End of :Expenses:Books $20.00 $20.00
08-Feb-28 End of February End of Feb:Assets:Cash $-20.00 0
08-Mar-01 March March:Expenses:Books $30.00 $30.00
08-Mar-01 March March:Assets:Cash $-30.00 0

View file

@ -5,7 +5,7 @@ reg -B
Expenses:Bank:Fees 2.73
Liabilities:Mastercard
>>>1
09-Jun-03 Westjet Expen:Transportati:Air 676.017377 676.017377
09-Jun-03 Westjet Expe:Transportatio:Air 676.017377 676.017377
Expenses:Bank:Fees 2.73 678.747377
Liabilities:Mastercard -678.747377 0
>>>2

View file

@ -11,7 +11,7 @@ reg
Expenses:Financial:Fees
>>>1
07-Dec-31 Cost basis for: RED.. As:In:RBC-:Account-RSP 4.00 RHT 4.00 RHT
Equ:Opening-Balan:Cost -689.87 CAD -689.87 CAD
Eq:Opening-Balanc:Cost -689.87 CAD -689.87 CAD
4.00 RHT
08-Jan-03 Sell -- RHT -- RED .. As:In:RBC-:Account-RSP -4.00 RHT -689.87 CAD
Ex:Financi:Commissions 9.95 USD -689.87 CAD