[Cook] end-of-line question
Jerry Pendergraft
jerry at endocardial.com
Thu Sep 26 00:12:38 EST 2002
On Mon, 23 Sep 2002, Matthew Lee wrote:
> I'm having some trouble with end-of-line's in cook recipes -- I hope
> someone can help!
>
> The cook user guide says that "An escaped end-of-line is totally
> ignored." (section 7.1.2).
>
> In one of my cookbooks, I'm printing some debug info in an attempt to
> get my recipes right. I want to limit the column width of my cookbook
> to 80 columns. Here's what I'm doing:
>
> function print Debug1 [rather-long-function-name argument1 argument2]/\
> [fromto %%-%2-%3 %1-%2 i586-Linux-avr]/lib\
> [rather-long-function-name argument1 argument2].a
function print will automatically wrap lines on output even if your
message did not contain spaces.
try using echo instead.
Also you can use catenate and/or unsplit to form the message across
multiple lines.
Something like:
echo [unsplit " " Debug1
[catenate [rather-long-function-name argument1 argument2] /
[fromto %1-%2-%3 %1-%2 i586-Linux-avr]/lib /
[rather-long-function-name argument1 argument2] .a
]
];
> Thanks in advance,
>
> Matt Lee
> KlaxonIQA
> Sydney, Australia
> _______________________________________________
> Cook-users mailing list
> Cook-users at auug.org.au
> http://www.auug.org.au/mailman/listinfo/cook-users
>
More information about the Cook-users
mailing list