Summary

pretty-print does not escape strings like write does

Metadata

Description

I would expect the follow to both print "\t" to the screen:

 (write "\t")
 (pretty-print "\t")

Just like these both print "\"" to the screen:

 (write "\")
 (pretty-print "\"")

pretty-print instead prints a literal tab between double quotes.

Changes and comments

[2011-02-18 01:06:27 UTC] alanpost set cc to alanpost@sunflowerriver.org

[2011-02-18 01:06:27 UTC] alanpost wrote:

This is also happening with \n, \r, and \f. I haven't tested other escape sequences.

[2011-03-28 09:39:03 UTC] felix changed status from new to closed

[2011-03-28 09:39:03 UTC] felix set resolution to fixed

[2011-03-28 09:39:03 UTC] felix wrote:

I have added handling of "\t", "\r" and "\n".

[2011-06-01 09:00:41 UTC] felix changed milestone from 4.7.0 to 4.8.0

[2011-06-01 09:00:41 UTC] felix wrote:

Milestone 4.7.0 deleted

[2012-09-24 21:47:48 UTC] felix changed milestone from 4.8.0 to 4.9.0

[2012-09-24 21:47:48 UTC] felix wrote:

Milestone 4.8.0 deleted