Subject: Re: string printing within specified margins
From: Erik Naggum <erik@naggum.net>
Date: 2000/08/03
Newsgroups: comp.lang.lisp
Message-ID: <3174309221400582@naggum.net>

* John M. Adams
|     Given a long string, 
|     what is a natural way
|     to print it within 
|     certain margins, like
|     this?
| 
| With all the power of format and pretty-printing, it seems like
| there ought to be a way, but I'm not getting it.

(let ((*print-miser-width* 0)
      (*print-right-margin* 20))
  (format t "~@<Given a long string, what is a natural way to print it within certain margins, like this?~@:>"))
Given a long
string, what is a
natural way to
print it within
certain margins,
like this?
=> nil

  I haven't found (in five minutes) a good way to make this work for
  an argument string instead of a constant string.

#:Erik
-- 
  If this is not what you expected, please alter your expectations.