diff options
author | Rebecca Turner <rbt@sent.as> | 2024-03-28 16:26:42 -0700 |
---|---|---|
committer | Rebecca Turner <rbt@sent.as> | 2024-03-29 16:26:29 -0700 |
commit | a5a25894c152848d1a57f97b2ef5542ddf6cdb9d (patch) | |
tree | ea623d3e50f133b6f1d651847eef67e9172a3218 /src/libexpr/print-ambiguous.cc | |
parent | 5a54b0a20c80356de5098694353f506e73fb883f (diff) |
Move `escapeString` to its own file
Change-Id: Ie5c954ec73c46c9d3c679ef99a83a29cc7a08352
Diffstat (limited to 'src/libexpr/print-ambiguous.cc')
-rw-r--r-- | src/libexpr/print-ambiguous.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libexpr/print-ambiguous.cc b/src/libexpr/print-ambiguous.cc index 3f3c2c45a..ec30f5073 100644 --- a/src/libexpr/print-ambiguous.cc +++ b/src/libexpr/print-ambiguous.cc @@ -2,6 +2,7 @@ #include "print.hh" #include "eval.hh" #include "signals.hh" +#include "escape-string.hh" namespace nix { @@ -27,7 +28,7 @@ void printAmbiguous( printLiteralBool(str, v.boolean); break; case nString: - printLiteralString(str, v.string.s); + escapeString(str, v.string.s); break; case nPath: str << v.path().to_string(); // !!! escaping? |