diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index e4bb8c3..f986962 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -1417,8 +1417,10 @@ namespace cxxopts if (*current == '\n') { + stringAppend(result, startLine, current + 1); startLine = current + 1; lastSpace = startLine; + size = 0; } else if (size > width) {