From 92ef8022e5fc3ecdb6db324535edffc119e1264c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 28 May 2020 07:48:12 +0200 Subject: Get rid of trailing spaces in generated code --- cli/cli/source.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cli/cli/source.cxx') diff --git a/cli/cli/source.cxx b/cli/cli/source.cxx index 9cd2382..b6df839 100644 --- a/cli/cli/source.cxx +++ b/cli/cli/source.cxx @@ -109,7 +109,7 @@ namespace for (names::name_iterator i (n.name_begin ()); i != n.name_end (); ++i) { - os << "_cli_" << scope << "_map_[\"" << *i << "\"] = " << endl + os << "_cli_" << scope << "_map_[\"" << *i << "\"] =" << endl << "&" << cli << "::thunk< " << scope << ", " << type << ", " << "&" << scope << "::" << member; @@ -1118,7 +1118,10 @@ namespace << "cf[" << n + 1 << "] = '\\0';" << endl << "int ac (1);" - << "char* av[] = {cf};" + << "char* av[] =" + << "{" + << "cf" + << "};" << cli << "::argv_scanner ns (0, ac, av);" << endl << "if (!_parse (cf, ns))" << endl -- cgit v1.1