From ea542d0a9cb9c6ac3dbd61a41032678aaa92781f Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 14 Jun 2015 11:30:32 -0700 Subject: 1562 --- 013literal_string.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/013literal_string.cc b/013literal_string.cc index 5de8df93..ffd879a2 100644 --- a/013literal_string.cc +++ b/013literal_string.cc @@ -69,6 +69,11 @@ string slurp_quoted(istream& in) { return; } +//: Two tweaks to printing literal strings compared to other reagents: +//: a) Don't print the string twice in the representation, just put '_' in +//: the property list. +//: b) Escape newlines in the string to make it more friendly to trace(). + :(after "string reagent::to_string()") if (!properties.at(0).second.empty() && properties.at(0).second.at(0) == "literal-string") { return emit_literal_string(name); -- cgit 1.4.1-2-gfad0