Handle newlines in description (#138)

This commit is contained in:
parkertomatoes 2018-10-07 20:57:33 -04:00 committed by jarro2783
parent 1f7ac82495
commit f75feab968

View File

@ -1415,7 +1415,12 @@ namespace cxxopts
lastSpace = current;
}
if (size > width)
if (*current == '\n')
{
startLine = current + 1;
lastSpace = startLine;
}
else if (size > width)
{
if (lastSpace == startLine)
{