Added note about printing special characters to escape sequences to the reference.
authorVladimir Sedach <vsedach@gmail.com>
Sat, 28 Feb 2009 19:39:06 +0000 (12:39 -0700)
committerVladimir Sedach <vsedach@gmail.com>
Sat, 28 Feb 2009 19:39:06 +0000 (12:39 -0700)
docs/reference.lisp
t/reference-tests.lisp

index 007bc71..530baaf 100644 (file)
@@ -130,9 +130,10 @@ WHEN WHILE WITH WITH-SLOTS
 
 "bratzel bub" => 'bratzel bub'
 
-;;; Escapes in Lisp are not converted to JavaScript escapes. However,
-;;; to avoid having to use double backslashes when constructing a
-;;; string, you can use the CL-INTERPOL library by Edi Weitz.
+;;; Special characters such as newline and backspace are converted
+;;; into their corresponding JavaScript escape sequences.
+
+"      \b"   => '\\t\\b'
 
 ;;;## Array literals
 ;;;t \index{array}
index 1e85593..659c86f 100644 (file)
   "bratzel bub"
   "'bratzel bub'")
 
+(test-ps-js string-literals-3
+  "    \b"
+  "'\\t\\b'")
+
 (test-ps-js array-literals-1
   (array)
   "[  ]")