aboutsummaryrefslogtreecommitdiff
path: root/args.hxx
diff options
context:
space:
mode:
authorTaylor C. Richberger <Taywee@gmx.com>2016-05-06 14:48:42 -0600
committerTaylor C. Richberger <Taywee@gmx.com>2016-05-06 14:48:42 -0600
commit0321aef7b37b6dee653f480c8cbbf349ccf5cf32 (patch)
tree6f04379fb8aabdc56336748082ce9545369a890e /args.hxx
parentfix superfluous space character (diff)
downloadargs.hxx-0321aef7b37b6dee653f480c8cbbf349ccf5cf32.tar.xz
better fix for wrap issue
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)
{