Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#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 13 years ago by Alan Post

Cc: alanpost@… added

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

comment:2 Changed 13 years ago by felix winkelmann

Resolution: fixed
Status: newclosed

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

comment:3 Changed 13 years ago by felix winkelmann

Milestone: 4.7.04.8.0

Milestone 4.7.0 deleted

comment:4 Changed 12 years ago by felix winkelmann

Milestone: 4.8.04.9.0

Milestone 4.8.0 deleted

Note: See TracTickets for help on using tickets.