From 0321aef7b37b6dee653f480c8cbbf349ccf5cf32 Mon Sep 17 00:00:00 2001 From: "Taylor C. Richberger" Date: Fri, 6 May 2016 14:48:42 -0600 Subject: better fix for wrap issue --- args.hxx | 13 ++++++++----- 1 file 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) { -- cgit v1.2.1