From 21e4b453dfc7df905ed304c5513b50f57ef19228 Mon Sep 17 00:00:00 2001 From: Kruglov Pavel <48961922+Avogar@users.noreply.github.com> Date: Mon, 8 Jan 2024 22:02:40 +0100 Subject: [PATCH] Fix pretty type name --- src/DataTypes/DataTypeVariant.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/DataTypes/DataTypeVariant.cpp b/src/DataTypes/DataTypeVariant.cpp index 5dc42cc7443..2bc4dfa5a7a 100644 --- a/src/DataTypes/DataTypeVariant.cpp +++ b/src/DataTypes/DataTypeVariant.cpp @@ -71,17 +71,17 @@ std::string DataTypeVariant::doGetPrettyName(size_t indent) const { size_t size = variants.size(); WriteBufferFromOwnString s; - s << "Variant(\n"; + s << "Variant("; for (size_t i = 0; i != size; ++i) { if (i != 0) - s << ",\n"; + s << ", "; - s << fourSpaceIndent(indent + 1) << variants[i]->getPrettyName(indent + 1); + s << variants[i]->getPrettyName(indent); } - s << '\n' << fourSpaceIndent(indent) << ')'; + s << ')'; return s.str(); }