Handle newlines in description (#138)
This commit is contained in:
parent
1f7ac82495
commit
f75feab968
@ -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)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user