diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-15 16:42:14 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-15 16:42:14 -0400 |
commit | 20475478a4f49b8f6e4c86b8c1fc7d79451581e0 (patch) | |
tree | 31084656dd239b481dca87d984887f855a142fff /src/format.cc | |
parent | 6f7f87699c509131ab5ffff330ba77abbd58e829 (diff) | |
download | fork-ledger-20475478a4f49b8f6e4c86b8c1fc7d79451581e0.tar.gz fork-ledger-20475478a4f49b8f6e4c86b8c1fc7d79451581e0.tar.bz2 fork-ledger-20475478a4f49b8f6e4c86b8c1fc7d79451581e0.zip |
Removed the %! formatting code, as it does nothing
Diffstat (limited to 'src/format.cc')
-rw-r--r-- | src/format.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/format.cc b/src/format.cc index cfbe5172..43563a2a 100644 --- a/src/format.cc +++ b/src/format.cc @@ -136,14 +136,11 @@ format_t::element_t * format_t::parse_elements(const string& fmt) } ++p; - while (*p == '!' || *p == '-') { + while (*p == '-') { switch (*p) { case '-': current->add_flags(ELEMENT_ALIGN_LEFT); break; - case '!': - current->add_flags(ELEMENT_FORMATTED); - break; } ++p; } @@ -283,8 +280,7 @@ void format_t::format(std::ostream& out_str, scope_t& scope) unistring temp(out.str()); string result; - if (! elem->has_flags(ELEMENT_FORMATTED) && - elem->max_width > 0 && elem->max_width < temp.length()) { + if (elem->max_width > 0 && elem->max_width < temp.length()) { result = truncate(temp, elem->max_width); } else { result = temp.extract(); |