Merge branch 'OlafvdSpek-patch-2'

This commit is contained in:
Alexander Karatarakis 2017-03-29 13:24:53 -07:00
commit a312cb4939

View File

@ -47,7 +47,7 @@ namespace vcpkg::details
std::string shorten_description(const std::string& desc) std::string shorten_description(const std::string& desc)
{ {
auto simple_desc = std::regex_replace(desc, std::regex("\\n( |\\t)?"), ""); auto simple_desc = std::regex_replace(desc, std::regex("\\s+"), " ");
return simple_desc.size() <= 52 return simple_desc.size() <= 52
? simple_desc ? simple_desc
: simple_desc.substr(0, 49) + "..."; : simple_desc.substr(0, 49) + "...";