Re: Nesting format tags

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 11642
interpreted = N
texte = Grant Hulbert wrote: > > >This may be a dumb question, but can you nest format tags? I was trying > >to create a line with a length of 1400 characters, with formatting > >inside that, using [format 1400s][format 10s]something[/format][format > >5s]something[/format]......[/format] where all the format tags inside > >the tag that was 1400s added up to 1400, but when I checked the file > >WebCat created, it was nowhere near the right length (way too short). I > >have tried it without the [format 1400s], which theorectically should be > >the same size, but that doesn't work either (too long). Any ideas? > > Sorry, we had to limit the format to a maximum of 255 characters. Anything beyond that gets chopped off at 255. We'll add it to the feature request database. > > In the meantime, you can format each individual subsection so that the total sum of lengths adds to 1400. Just remove the outer format tag, and make sure the inner ones add up to 1400.Thanks for the info. I've got one other question then. Since format is limited to 255 characters, how can I format the output of [lineitems] to where it has a length of 555 characters? Currently I have it as:[format 555s][lineItems][format 12s][sku][/format][format 10s][textB][/format][format 5s][quantity][/format][format 10s][price][/format][/lineItems][/format]But, I know this doesn't work now. Logic would tell me that I can't split it up with say [format255s][lineitems]...[/format][format 255s][lineitems]...[/format]. Is this the case? What else can I do?Thanks, John-- John S. Winningham WebWright Inc. john@webwrightinc.com http://www.webwrightinc.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Nesting format tags (Grant Hulbert 1997)
  2. Re: Nesting format tags (John S. Winningham 1997)
  3. Re: Nesting format tags (Grant Hulbert 1997)
  4. Re: Nesting format tags (John S. Winningham 1997)
  5. Re: Nesting format tags (Kenneth Grome 1997)
  6. Re: Nesting format tags (Grant Hulbert 1997)
  7. Nesting format tags (John S. Winningham 1997)
Grant Hulbert wrote: > > >This may be a dumb question, but can you nest format tags? I was trying > >to create a line with a length of 1400 characters, with formatting > >inside that, using [format 1400s][format 10s]something[/format][format > >5s]something[/format]......[/format] where all the format tags inside > >the tag that was 1400s added up to 1400, but when I checked the file > >WebCat created, it was nowhere near the right length (way too short). I > >have tried it without the [format 1400s], which theorectically should be > >the same size, but that doesn't work either (too long). Any ideas? > > Sorry, we had to limit the format to a maximum of 255 characters. Anything beyond that gets chopped off at 255. We'll add it to the feature request database. > > In the meantime, you can format each individual subsection so that the total sum of lengths adds to 1400. Just remove the outer format tag, and make sure the inner ones add up to 1400.Thanks for the info. I've got one other question then. Since format is limited to 255 characters, how can I format the output of [lineitems] to where it has a length of 555 characters? Currently I have it as:[format 555s][lineitems][format 12s][sku][/format][format 10s][textB][/format][format 5s][quantity][/format][format 10s][price][/format][/lineItems][/format]But, I know this doesn't work now. Logic would tell me that I can't split it up with say [format255s][lineitems]...[/format][format 255s][lineitems]...[/format]. Is this the case? What else can I do?Thanks, John-- John S. Winningham WebWright Inc. john@webwrightinc.com http://www.webwrightinc.com/ John S. Winningham

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:

Online reference (1997) WebDNA Module with Apache 2.2 (2006) Calculating Age from DB fields (2003) Plugin vs. CGI (1998) Weekly Triggers??? (2000) WebCatalog 2.0 & WebDNA docs in HTML ... (1997) [include ...] behavior (1997) Getting total number of items ordered (1997) cookies and [returnraw] (1997) Running _every_ page through WebCat ? (1997) 2.1b3 --> way slow (1997) (2003) Trouble with [fileinfo] - update (2004) Major bug report on rootbeer (1997) Major bug report on rootbeer (1997) GuestBook example (1997) New public beta available (1997) Comments in db? (1997) emptying shopping carts and orders folder (2004) [protect] on NT? (1997)