From f0951bc6b578ba52b607c05558f5714a012db0c8 Mon Sep 17 00:00:00 2001 From: Ylva Selling Date: Tue, 26 Mar 2024 11:55:47 +0100 Subject: [PATCH] Make lists have a whitespace after a comma It will make the string more readable and enable linebreaks in a table --- include/openspace/documentation/verifier.inl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/openspace/documentation/verifier.inl b/include/openspace/documentation/verifier.inl index 40a623cd54..dab3c5d699 100644 --- a/include/openspace/documentation/verifier.inl +++ b/include/openspace/documentation/verifier.inl @@ -404,12 +404,12 @@ std::string InListVerifier::documentation() const { std::copy( values.begin(), values.end(), - std::ostream_iterator(s, ",") + std::ostream_iterator(s, ", ") ); std::string joined = s.str(); - // We need to remove a trailing ',' at the end of the string - result += joined.substr(0, joined.size() - 1); + // We need to remove a trailing ',' and whitespace at the end of the string + result += joined.substr(0, joined.size() - 2); result += " }"; return result;