From c71ef09305d8e2baea59132afc4cc20f310431e1 Mon Sep 17 00:00:00 2001 From: Henry Fredrick Schreiner Date: Tue, 14 Feb 2017 16:46:26 -0500 Subject: [PATCH] Fix for missing newline without discription --- include/CLI/StringTools.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/CLI/StringTools.hpp b/include/CLI/StringTools.hpp index b49f483..97ba604 100644 --- a/include/CLI/StringTools.hpp +++ b/include/CLI/StringTools.hpp @@ -61,8 +61,9 @@ void format_help(std::stringstream &out, std::string name, std::string descripti if(description != "") { if(name.length()>=wid) out << std::endl << std::setw(wid) << ""; - out << description << std::endl; + out << description; } + out << std::endl; } /// Verify the first character of an option -- libgit2 0.21.4