On Tue, Feb 05, 2008 at 01:54:28PM +0100, C. Schalkwijk wrote:
What if I _want_ my text to indent?
then you can't use %=s how should the function know wether a space is there for indenting or not. it can't.
(I want my code to think for me, only when requested).
but that's exactly what you are requestion when you use %=s it implies that you expect pike to handle the wrapping and formatting for you.
Sprintf should be a 'dumb' function and just apply the format I ask for, nothing more.
with %=s you are asking for a wordwrapped block without indenting.
greetings, martin.