Skip to content

Commit 4c85e49

Browse files
committed
Bugfix: .description() and .epilog() now respect \n in the strings
1 parent 672732d commit 4c85e49

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

OptionParser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ string OptionParser::format_help() const {
392392
ss << get_usage() << endl;
393393

394394
if (description() != "")
395-
ss << str_format(description(), 0, cols()) << endl;
395+
ss << str_format(description(), 0, cols(), false) << endl;
396396

397397
ss << _("Options") << ":" << endl;
398398
ss << format_option_help();
@@ -408,7 +408,7 @@ string OptionParser::format_help() const {
408408
}
409409

410410
if (epilog() != "")
411-
ss << endl << str_format(epilog(), 0, cols());
411+
ss << endl << str_format(epilog(), 0, cols(),false);
412412

413413
return ss.str();
414414
}

0 commit comments

Comments
 (0)