From a5a25894c152848d1a57f97b2ef5542ddf6cdb9d Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Thu, 28 Mar 2024 16:26:42 -0700 Subject: Move `escapeString` to its own file Change-Id: Ie5c954ec73c46c9d3c679ef99a83a29cc7a08352 --- src/libexpr/print-ambiguous.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libexpr/print-ambiguous.cc') 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? -- cgit v1.2.3