Replace all whitespace by a single space
MODIFY
src/vcpkglib_helpers.cpp
src/vcpkglib_helpers.cpp
@@ -47,7 +47,7 @@ namespace vcpkg::details
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
? simple_desc
: simple_desc.substr(0, 49) + "...";

Replace all whitespace by a single space