1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 10:41:16 +02:00

dropEmptyInitThenConcatStringsSep -> concatStringSep: diagnostics and docs

These are non-critical, so their behavior is ok to change.
Dropping empty items is not needed and usually not expected.
This commit is contained in:
Robert Hensing 2024-07-12 23:06:32 +02:00
parent a681d354e7
commit ea966a70fc
9 changed files with 28 additions and 16 deletions

View file

@ -33,6 +33,8 @@
#include <gc/gc_cpp.h>
#endif
#include "strings.hh"
namespace nix {
/**
@ -625,7 +627,7 @@ ProcessLineResult NixRepl::processLine(std::string line)
markdown +=
"**Synopsis:** `builtins." + (std::string) (*doc->name) + "` "
+ dropEmptyInitThenConcatStringsSep(" ", args) + "\n\n";
+ concatStringsSep(" ", args) + "\n\n";
}
markdown += stripIndentation(doc->doc);