diff options
Diffstat (limited to 'src/format.cc')
-rw-r--r-- | src/format.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/format.cc b/src/format.cc index f881cf37..cfbe5172 100644 --- a/src/format.cc +++ b/src/format.cc @@ -245,11 +245,10 @@ void format_t::format(std::ostream& out_str, scope_t& scope) else out << std::right; - if (elem->min_width > 0) - out.width(elem->min_width); - switch (elem->type) { case element_t::STRING: + if (elem->min_width > 0) + out.width(elem->min_width); out << elem->chars; break; |