about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-06-14 11:30:32 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-06-14 11:30:32 -0700
commitea542d0a9cb9c6ac3dbd61a41032678aaa92781f (patch)
treea932671a250f2d2d6a62b8aa7dddb478ebe82534
parent2f677225ab42cb2aafe03dfe1b9ca1b3bf55118c (diff)
downloadmu-ea542d0a9cb9c6ac3dbd61a41032678aaa92781f.tar.gz
1562
-rw-r--r--013literal_string.cc5
1 files changed, 5 insertions, 0 deletions
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);