Re: removing programming logic white space

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 50988
interpreted = N
texte = This topic is covered extensively in the archives. You can either wrap the entire page in a grep or convertwords context so that the whitespace is removed or you can wrap each line ending like this: [/!][search db=search.db][!] [/!][numfound][!]This way the line endings are commented out. This can be done with a grep search/replace in BBEdit very easily. Be careful not to remove the line endings where you need them, for example in a writefile context. Or you could get used to the whitespace. -----Original Message----- From: Lucas Rockwell Sent: Mon, 9 Jun 2003 10:22:33 To: (WebDNA Talk) Subject: removing programming logic white spaceHi all,Is there a way to remove the programming logic white space from the output of a template?For instance, if I have a template with 20 lines of WebDNA code (all of it logic), the resulting html output has 20 blank lines in it. This is a real annoyance, especially when trying to format email messages.Is there a way to have WebDNA not output blank lines and just output what it's supposed to output?Thanks.-lucas ------------------------------------------------------------- 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/------------------------------------------------------------- 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: removing programming logic white space (Rob Marquardt 2003)
  2. Re: removing programming logic white space (Kenneth Grome 2003)
  3. Re: removing programming logic white space (Dale LaFountain 2003)
  4. Re: removing programming logic white space (Brian Fries 2003)
  5. Re: removing programming logic white space (Alain Russell 2003)
  6. Re: removing programming logic white space (Rob Marquardt 2003)
  7. Re: removing programming logic white space (Alain Russell 2003)
  8. Re: removing programming logic white space (Rob Marquardt 2003)
  9. Re: removing programming logic white space (Dale LaFountain 2003)
  10. Re: removing programming logic white space (Lucas Rockwell 2003)
  11. Re: removing programming logic white space (Rob Marquardt 2003)
  12. Re: removing programming logic white space (Glenn Busbin 2003)
  13. Re: removing programming logic white space (Rob Marquardt 2003)
  14. Re: removing programming logic white space (Brian Fries 2003)
  15. Re: removing programming logic white space (Rob Marquardt 2003)
  16. Re: removing programming logic white space (Lucas Rockwell 2003)
  17. Re: removing programming logic white space (Brian Fries 2003)
  18. Re: removing programming logic white space (Lucas Rockwell 2003)
  19. Re: removing programming logic white space (devaulw@onebox.com 2003)
  20. removing programming logic white space (Lucas Rockwell 2003)
This topic is covered extensively in the archives. You can either wrap the entire page in a grep or convertwords context so that the whitespace is removed or you can wrap each line ending like this: [/!][search db=search.db][!] [/!][numfound][!]This way the line endings are commented out. This can be done with a grep search/replace in BBEdit very easily. Be careful not to remove the line endings where you need them, for example in a writefile context. Or you could get used to the whitespace. -----Original Message----- From: Lucas Rockwell Sent: Mon, 9 Jun 2003 10:22:33 To: (WebDNA Talk) Subject: removing programming logic white spaceHi all,Is there a way to remove the programming logic white space from the output of a template?For instance, if I have a template with 20 lines of WebDNA code (all of it logic), the resulting html output has 20 blank lines in it. This is a real annoyance, especially when trying to format email messages.Is there a way to have WebDNA not output blank lines and just output what it's supposed to output?Thanks.-lucas ------------------------------------------------------------- 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/------------------------------------------------------------- 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/ devaulw@onebox.com

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:

WCS Newbie question (1997) Search inside Include (1998) NT or Mac (1997) Closing databaes (2002) F3 crashing server (1997) dos command not working the same as does at prompt? (1998) Size Limitation through a POST via SSL? (2005) user submitted data REPOST (2000) closedatabases simple question.. (2002) WebDelivery downloads alias, not original ? (1997) [REFERRER] bug? (1998) using showpage and showcart commands (1996) Re:Multiple appends with checkboxes (1998) Help! WebMerchant store suddenly won't process orders... (2001) SMSI -- a [notfound] context? (2002) Sun doesn't have an emailer app? (2000) Just Testing (1997) [WebDNA] why is this cookie being set to expire at end of browser session? (2009) Store Builder (2000) WebCatalog Develper Needs Work (2001)