aboutsummaryrefslogtreecommitdiff
path: root/args.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'args.hxx')
-rw-r--r--args.hxx13
1 files changed, 8 insertions, 5 deletions
diff --git a/args.hxx b/args.hxx
index 14cfd0a..9315c51 100644
--- a/args.hxx
+++ b/args.hxx
@@ -99,13 +99,16 @@ namespace args
currentwidth = width;
}
}
- if (linesize && !item.empty())
+ if (itemsize > 0)
{
- ++linesize;
- line << " ";
+ if (linesize)
+ {
+ ++linesize;
+ line << " ";
+ }
+ line << item;
+ linesize += itemsize;
}
- line << item;
- linesize += itemsize;
}
if (linesize > 0)
{