Re: unwanted new line

Sam Steingold <[email protected]> Fri, 14 Jul 2023 14:50:47 -0400
Newsgroups gmane.lisp.clisp.general
Message-ID <[email protected]>
> * Don Cohen <[email protected]> [2023-07-14 02:15:04 +0000]:
>
> (setf list '("abc" "def" "qwe
> rty
> uiop" "zxc"))
>
> (with-output-to-string (s)(loop for x in list do (format s "~s~c" x #\tab)))
> "\"abc\"        \"def\"
> \"qwe
> rty
> uiop\"  \"zxc\" "
>
> Why is there an extra new line before the list element that contains
> the newlines?
> Is there some way to suppress it ?

https://clisp.sourceforge.io/impnotes/faq.html#faq-pp-newline
;-)
https://clisp.sourceforge.io/impnotes/faq.html#faq-fine



-- 
Sam Steingold (https://aphar.dreamwidth.org/) on Pop 22.04 (jammy) X 11.0.12101004
https://lastingimpactpsychology.com https://steingoldpsychology.com
https://thereligionofpeace.com https://camera.org https://honestreporting.com
Booze is the answer. I can't remember the question.


_______________________________________________
clisp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-list