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.
-- 
cooperative communication with sTeam      -     caudium, pike, roxen and unix
offering: programming, training and administration   -  anywhere in the world
--
pike programmer   working in new zealand                community.gotpike.org
unix system-      iaeste.(tuwien.ac|or).at                     open-steam.org
administrator     caudium.org                                    is.schon.org
Martin Bähr       http://www.iaeste.or.at/~mbaehr/
  • sprintf wra... C. Schalkwijk
    • Re: sp... Arne Goedeke
    • Re: sp... Arne Goedeke
      • Re... Martin Nilsson (Opera Mini - AFK!) @ Pike (-) developers forum
        • ... Arne Goedeke
          • ... Martin Nilsson (Opera Mini - AFK!) @ Pike (-) developers forum
    • Sprint... C. Schalkwijk
      • Re... Martin Bähr
        • ... C. Schalkwijk
          • ... Martin Bähr
            • ... C. Schalkwijk
              • ... Martin Bähr
              • ... Bertrand LUPART
          • ... Arne Goedeke
            • ... C. Schalkwijk
              • ... Arne Goedeke
                • ... C. Schalkwijk
      • Re... Arne Goedeke

Reply via email to