#506 closed defect (fixed)
pretty-print does not escape strings like write does
Reported by: | Alan Post | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 4.9.0 |
Component: | core libraries | Version: | 4.6.x |
Keywords: | Cc: | alanpost@… | |
Estimated difficulty: |
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.
Change History (4)
comment:1 Changed 14 years ago by
Cc: | alanpost@… added |
---|
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
I have added handling of "\t", "\r" and "\n".
Note: See
TracTickets for help on using
tickets.
This is also happening with \n, \r, and \f. I haven't tested other escape sequences.