Re: Stupid Format grrrrrrrr....

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 58930
interpreted = N
texte = >Two things. > >In a format string "s" assumes alphanumeric characters and so the output is always left justified with spaces padded on the right. On the other hand, "f" assumes a numeric value and is right justified. > >Secondly, runs of spaces are stripped by browsers. > >You need to use "f" in your format string if [ID] is a number and you need to wrap the whole thing in
 tag. Like this:>
>[format 4.0f]1[/format]>[format 4.0f]11[/format]>[format 4.0f]111[/format]>[format 4.0f]1111[/format]>
> >The "Hello" example in the docs is clear that "s" is left justified. > >~joe > > > Thanks, I just need to style my pre tag now as the text has gone tiny ;-) Cheers Joe... Alan ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Stupid Format grrrrrrrr.... ( Alan White 2004)
  2. Re: Stupid Format grrrrrrrr.... ( Joe D'Andrea 2004)
  3. Stupid Format grrrrrrrr.... ( Alan White 2004)
>Two things. > >In a format string "s" assumes alphanumeric characters and so the output is always left justified with spaces padded on the right. On the other hand, "f" assumes a numeric value and is right justified. > >Secondly, runs of spaces are stripped by browsers. > >You need to use "f" in your format string if [ID] is a number and you need to wrap the whole thing in
 tag. Like this:>
>[format 4.0f]1[/format]>[format 4.0f]11[/format]>[format 4.0f]111[/format]>[format 4.0f]1111[/format]>
> >The "Hello" example in the docs is clear that "s" is left justified. > >~joe > > > Thanks, I just need to style my pre tag now as the text has gone tiny ;-) Cheers Joe... Alan ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Alan White

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Grep help needed (2004) Candle Light Vigil (2001) Error 551 in Emailer (2000) Question about replacing words (1998) Probably a very simple question? (1997) Automatic [URL]ing by the webdna engine (2003) Dumb Question about Docs (1997) WebCommerce: Folder organization ? (1997) [WebDNA] Admin Login Required to Serve any TPL Page (2009) Loosing Quantity (2000) NT or Mac (1998) Listserver problem (1997) total number of matches (1999) WebCat2b13MacPlugin - [math][date][/math] problem (1997) form image (2000) Emailer help....! (1997) Permission denied? (2004) Emailer Set Up (1997) problems with WebCat-Plugin (1997) Country & Ship-to address & other fields ? (1997)