🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ti.explorer
Article #80

PPrinting to a String

#80
From: "Tihamer T. Toth-Fejel"
Date: Wed, 27 Sep 1989 13:02
25 lines
1166 bytes
	I would like to be able to pretty print an sexp into a
	string, as opposed to into a stream. How can I do this
	(on a TI Explorer)? Simply giving NIL as the stream to
	pprint does not work.
	
		Thanks for any suggestions,
			Mark


Please let me know when you get it done.
I've wanted to know how to do the same thing.

OOPS!  Hold the presses! I just got an idea!
(two minutes later)
Yep, see pg. 5-8 of Lisp I/O Reference on write-to-string
specifically:
(write-to-string sexpr :pretty t)
Does just what you want it to.


internet:  ttf@iti.org     (Tihamer T. Toth-Fejel)
Industrial Technologies Institute, Ann Arbor, Michigan 48106
(313) 769-4248 or 4345     home: (313) 622-4741
*----*----*----*----*----*----*----*----*----*----*----*----*----*
Technical Details
Message-ID: <8909271302.AA04137@vax3.iti.org>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!VAX3.ITI.ORG!ttf

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!VAX3.ITI.ORG!ttf
From: ttf@VAX3.ITI.ORG ("Tihamer T. Toth-Fejel")
Newsgroups: comp.sys.ti.explorer
Subject: PPrinting to a String
Message-ID: <8909271302.AA04137@vax3.iti.org>
Date: 27 Sep 89 13:02:36 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Distribution: inet
Organization: The Internet
Lines: 25