diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-09-13 16:58:32 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-09-13 16:58:32 +0200 |
commit | d365cced4fadbbc63f0c39902a7091e1a34c34de (patch) | |
tree | 7929078323691fabc75e9a4a863f143579937761 /src/nix/main.cc | |
parent | b56906aae025b467111e67ed7b1bab485b3dbba5 (diff) |
Trim option descriptions
This removes unintended blank lines in Markdown when the description
is a multiline string literal.
Diffstat (limited to 'src/nix/main.cc')
-rw-r--r-- | src/nix/main.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/main.cc b/src/nix/main.cc index f434e9655..e0155cd5d 100644 --- a/src/nix/main.cc +++ b/src/nix/main.cc @@ -325,7 +325,7 @@ void mainWrapped(int argc, char * * argv) std::cout << "attrs\n"; break; } for (auto & s : *completions) - std::cout << s.completion << "\t" << s.description << "\n"; + std::cout << s.completion << "\t" << trim(s.description) << "\n"; } }); |