We should grab a beer and discus this further some day :) For now: I guess I'll have to write my own wrapping function.
Coen
Martin Bähr wrote:
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.
__________________________________________________________ Deze e-mail en de inhoud is vertrouwelijk en uitsluitend bestemd voor de geadresseerde(n). Indien u niet de geadresseerde bent van deze e-mail verzoeken wij u dit direct door te geven aan de verzender door middel van een reply e-mail en de ontvangen e-mail uit uw systemen te verwijderen. Als u geen geadresseerde bent, is het niet toegestaan om kennis te nemen van de inhoud, deze te kopieren, te verspreiden, bekend te maken aan derden noch anderszins te gebruiken.
The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Please notify us immediately if you have received it in error by reply e-mail and then delete this message from your system. __________________________________________________________