diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-20 14:14:58 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-20 15:41:48 -0400 |
commit | a181ac52d37b339ccc6723e8b74655bba338e5ef (patch) | |
tree | 0249fb15aa488ec849b4a8722cd03c53e6bb559f | |
parent | d167724bac399178ef94180ea5cc297539fefe05 (diff) | |
download | fork-ledger-a181ac52d37b339ccc6723e8b74655bba338e5ef.tar.gz fork-ledger-a181ac52d37b339ccc6723e8b74655bba338e5ef.tar.bz2 fork-ledger-a181ac52d37b339ccc6723e8b74655bba338e5ef.zip |
Corrected a column-wise formatting issue
-rw-r--r-- | src/format.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/format.cc b/src/format.cc index d2d7ebfd..b841af23 100644 --- a/src/format.cc +++ b/src/format.cc @@ -346,7 +346,7 @@ string format_t::truncate(const unistring& ustr, std::size_t width, // Even abbreviated its too big to show the last account, so // abbreviate all but the last and truncate at the beginning. unistring temp(result.str()); - buf << ".." << temp.extract(temp.length() - width, width); + buf << ".." << temp.extract(temp.length() - width - 2, width - 2); } else { buf << result.str(); } @@ -356,7 +356,7 @@ string format_t::truncate(const unistring& ustr, std::size_t width, case TRUNCATE_TRAILING: // This method truncates at the end (the default). - buf << ustr.extract(0, width -2) << ".."; + buf << ustr.extract(0, width - 2) << ".."; break; } |