From dd3c3fd8d745691b7da147208dfcd8dee2a49150 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 21 Jan 2023 12:43:01 +0100 Subject: Improve formatting of env in the generated configuration.cc --- src/configure.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/configure.cc b/src/configure.cc index 68ce7eb..b4829ac 100644 --- a/src/configure.cc +++ b/src/configure.cc @@ -554,12 +554,12 @@ int regenerateCache(ctor::settings& settings, istr << "\"" << esc(arg) << "\","; } istr << "},\n"; - istr << " .env = {"; + istr << " .env = {\n"; for(const auto& e : env) { - istr << "{\"" << esc(e.first) << "\", \"" << esc(e.second) << "\"}, "; + istr << " {\"" << esc(e.first) << "\", \"" << esc(e.second) << "\"},\n"; } - istr << "},\n"; + istr << " },\n"; istr << " .tools = {\n"; if(!builddir.empty()) -- cgit v1.2.3