From e8f315f00d0874e2afdee45525c4ce96d0768336 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 28 Jun 2009 15:53:46 +0100 Subject: Correctly align amounts formatted as "%12(amount)" --- src/format.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/format.cc') diff --git a/src/format.cc b/src/format.cc index 6620e5a4..ecac1133 100644 --- a/src/format.cc +++ b/src/format.cc @@ -345,7 +345,8 @@ void format_t::format(std::ostream& out_str, scope_t& scope) } DEBUG("format.expr", "value = (" << value << ")"); - value.print(out, elem->min_width); + value.print(out, elem->min_width, -1, + ! elem->has_flags(ELEMENT_ALIGN_LEFT)); } catch (const calc_error&) { add_error_context(_("While calculating format expression:")); -- cgit v1.2.3