Re: code to phantom spacing

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 36638
interpreted = N
texte = >Hi folks, > >The issue I would appreciate some help with is spacing being added to the > of a document, containing WebDNA, after being parsed. > >Does anyone know what actually is taking place? >Is this just WebCat overhead? >Any techniques to beat it?The space I belive you are talking about is the whitespace left between your webcat commands (the various spaces, tabs, and new lines used for formatting) webcat will not touch anything outside of []'s so all that whitespace is passed on to the browser.There are various methods for dealing with it. You can put all your webcat code on one line with no spaces in between. You can wrap white space with webcat comments [!] (whitespace) [/!]. I've tried experimenting with [listwords] to remove the whitespace, but I did not have much luck, but I didn't have the time to really get down and dirty with it. The basic premise was LOGICALLY this[listwords words=[include html file here, but you could put the actual code here]] [word](space) [/listwords]The idea is to replace all runs of whitespace with one single space. This solution isn't very friendly to the
 tags though. : )A process I was working on was causing a 2 meg page size due to left over whitespace.  So I think Listwords choked on 2 megs worth of data, but it might work for you, not sure.>Thanks for you help!Your Welcome.-Sam-------------------------------------------------------------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://search.smithmicro.com/





Associated Messages, from the most recent to the oldest:

    
  1. Re: code to phantom spacing (Glenn Busbin 2001)
  2. Re: code to phantom spacing (Jon Robinson 2001)
  3. Re: code to phantom spacing (Jon Robinson 2001)
  4. Re: code to phantom spacing (Kenneth Grome 2001)
  5. Re: code to phantom spacing (Kenneth Grome 2001)
  6. Re: code to phantom spacing (Jon Robinson 2001)
  7. Re: code to phantom spacing (Brian Fries 2001)
  8. Re: code to phantom spacing (John Peacock 2001)
  9. Re: code to phantom spacing (Jon Robinson 2001)
  10. Re: code to phantom spacing (Jon Robinson 2001)
  11. Re: Was Re: code to phantom spacing -- now BBEdit [!][/!] (Paolo Coppo 2001)
  12. Re: Was Re: code to phantom spacing -- now BBEdit [!][/!] (John Peacock 2001)
  13. Re: Was Re: code to phantom spacing -- now BBEdit [!][/!] (dale 2001)
  14. Was Re: code to phantom spacing -- now BBEdit [!][/!] (Christopher Mackay 2001)
  15. Re: code to phantom spacing (John Peacock 2001)
  16. Re: code to phantom spacing (Samuel Renkert 2001)
  17. Re: code to phantom spacing (Kenneth Grome 2001)
  18. Re: code to phantom spacing (Jon Robinson 2001)
  19. Re: code to phantom spacing (Kenneth Grome 2001)
  20. Re: code to phantom spacing (Jon Robinson 2001)
  21. Re: code to phantom spacing (Jon Robinson 2001)
  22. Re: code to phantom spacing (Jon Robinson 2001)
  23. Re: code to phantom spacing (Kenneth Grome 2001)
  24. Re: code to phantom spacing (Glenn Busbin 2001)
  25. Re: code to phantom spacing (Jon Robinson 2001)
  26. Re: code to phantom spacing (Kenneth Grome 2001)
  27. Re: code to phantom spacing (John Peacock 2001)
  28. Re: code to phantom spacing (Kenneth Grome 2001)
  29. code to phantom spacing (Jon Robinson 2001)
>Hi folks, > >The issue I would appreciate some help with is spacing being added to the > of a document, containing WebDNA, after being parsed. > >Does anyone know what actually is taking place? >Is this just WebCat overhead? >Any techniques to beat it?The space I belive you are talking about is the whitespace left between your webcat commands (the various spaces, tabs, and new lines used for formatting) webcat will not touch anything outside of []'s so all that whitespace is passed on to the browser.There are various methods for dealing with it. You can put all your webcat code on one line with no spaces in between. You can wrap white space with webcat comments [!] (whitespace) [/!]. I've tried experimenting with [listwords] to remove the whitespace, but I did not have much luck, but I didn't have the time to really get down and dirty with it. The basic premise was LOGICALLY this[listwords words=[include html file here, but you could put the actual code here]] [word](space) [/listwords]The idea is to replace all runs of whitespace with one single space. This solution isn't very friendly to the
 tags though. : )A process I was working on was causing a 2 meg page size due to left over whitespace.  So I think Listwords choked on 2 megs worth of data, but it might work for you, not sure.>Thanks for you help!Your Welcome.-Sam-------------------------------------------------------------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://search.smithmicro.com/



Samuel Renkert 

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:

same product in cart (1997) All of a Sudden Type 2 errors (1999) RE: IIS 4 (1998) Re2: frames & carts (1997) Banners (1997) Grep Question (2003) [WebDNA] TCP HTTP/1.1 questions (2011) Setting up WebCatalog with Retail Pro data (1996) [WebDNA] Lightbox2 for WebDNA (2008) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) authenticating a second user (1997) PCS Emailer's role ? (1997) Date search bug (1997) RE: Adding headers to email (1997) Conditional searching & displaying (1997) WebCatalog 2.0 b 15 mac (1997) Re[2]: 2nd WebCatalog2 Feature Request (1996) country of origin from IPADDRESS??? (2001) Running on Empty (1999) Date Comparison (1998)