[PD] one long comment in pd-vanilla 0.46

Jonathan Wilkes jancsika at yahoo.com
Wed Oct 15 22:25:18 CEST 2014


Because comments are handled as an array of atoms, and Pd converts the strings of text stored in Pd files to atoms by using whitespace as separators and filtering out newlines.

It's the same process you see if you type a bunch of consecutive spaces and newlines in an object box-- they are filtered out after you click on an empty part of the canvas and the object gets instantiated.

I think Pd-l2ork saves your newlines in comments, but upon loading the patch it still parses the string as a series of atoms.  So you'll still lose data.

-Jonathan


On Wednesday, October 15, 2014 2:37 PM, me.grimm <megrimm at gmail.com> wrote:
 


Hello

I there a reason when I make a long multi-sentence comment w/ carriage returns, save the file, then reopen that all the formatting (<CR>'s) is gone and I am left with a large glob of run-on text?

Yes, one could just have several separate comments and space them accordingly, but why would one need to?

has this topic been brought up before? maybe this is different in pd-l0rk or pd-x or something...

thanks!
m
_______________________________________________
Pd-list at lists.iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20141015/2abfb9e7/attachment.html>


More information about the Pd-list mailing list