Spaces inside [AppendFile]

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17208
interpreted = N
texte = >Hm, according to the HTML specifications a carriage return >should be interpreted as a single space or - like a lot of >browsers do - simply ignored.I think we're mixing two concepts here: what a browser graphically *displays* vs. what bytes are actually in the HTML file. If you do a View Source of a web page, you'll see every single space and return character in there, even if the graphical view doesn't render it. When you're doing an [AppendFile], you're writing to a disk file, which in many cases has nothing to do with HTML.>It is hard to write HTML mixed with special tags when the >special tags have their own editing rules...There are no special rules -- it writes out exactly what you paste into it.>Would it not be better if WebCat completely ignores carriage >returns and tabs?No, because we don't know if you're writing to an email file, an EDI file, a tab-delimited database or whatever. We consider every character you put in there (or leave out) to be important, because for many people it is.>#2 implement the possibility to write ASCII values i.e.: >[appendfile somefile]sometext[ascii13][/appendfile]Yes, whatever ASCII values you paste in there are exactly what gets written out. What you see is what you get, and no need to memorize ASCII numbers.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Spaces inside [AppendFile] (Peter Ostry 1998)
  2. Spaces inside [AppendFile] (PCS Technical Support 1998)
>Hm, according to the HTML specifications a carriage return >should be interpreted as a single space or - like a lot of >browsers do - simply ignored.I think we're mixing two concepts here: what a browser graphically *displays* vs. what bytes are actually in the HTML file. If you do a View Source of a web page, you'll see every single space and return character in there, even if the graphical view doesn't render it. When you're doing an [appendfile], you're writing to a disk file, which in many cases has nothing to do with HTML.>It is hard to write HTML mixed with special tags when the >special tags have their own editing rules...There are no special rules -- it writes out exactly what you paste into it.>Would it not be better if WebCat completely ignores carriage >returns and tabs?No, because we don't know if you're writing to an email file, an EDI file, a tab-delimited database or whatever. We consider every character you put in there (or leave out) to be important, because for many people it is.>#2 implement the possibility to write ASCII values i.e.: >[appendfile somefile]sometext[ascii13][/appendfile]Yes, whatever ASCII values you paste in there are exactly what gets written out. What you see is what you get, and no need to memorize ASCII numbers.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

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:

attn: smitmicro - cart limitation (2002) WC2.0 Memory Requirements (1997) wild question (1998) Shell traceroute (2001) search for non-unique question (2001) whole word matching (2004) refreshing IE with posted .tmpl (1997) GuestBook example (1997) WebCat2 Append problem (B14Macacgi) (1997) form data submission gets truncated (1997) Server slowing down. (1997) Plugin or CGI or both (1997) UnitShopCost (2007) Shipping Calculation Problem (1997) Paranoid about serial numbers...not (1998) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) OT: Unix Guru Needed (2003) Security for malls with different webmasters (1998) Accented chars and emailer (1998) WebCat2: Items xx to xx shown, etc. (1997)