Re: Formatting a .txt file

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 20923
interpreted = N
texte = Actually I got the text wrapping to work. I just needed to make it wrap=hard. But, I'd rather do it with a virtual wrap, so I am going to try those db's out. Thanks for all the help. --Michael -----Original Message----- From: Nathan Hyde To: mfichten@icubed.com Date: Monday, November 09, 1998 7:40 PM Subject: Re: Formatting a .txt file >Michael, > >In case you were not able to get the standardConversions db to work for you, >I've enclosed a .zip file of 2 dbs, 1 for converting items in an existing >Database -> Email messages (or in your case, a text file), and another for >showing users what they typed on the form -> HTML for a >preview/confirmation... > >The textareas that folks use on our site contains the wrap=virtual tag... > >Here's an example of how to use the dbs: >[convertchars db=/db/dbtoEmailconversions.db][yourTextArea][/convertchars] > >Hope this works for you. (If all else fails, take Olin's suggestion of using >BBEdit or Tex-Edit Plus to check out >the invisible characters.) > >Nathan Hyde >Casady & Greene >email: nh_is@casadyg.com, nhyde@mail3.casadyg.com >web page: http://www.casadyg.com >MacBundle.com: http://www.macbundle.com >WinBundle.com: http://www.winbundle.com >_________________________________ >Date: 7 Nov 1998 20:26:54 -0800 >From: Michael Fichtenmayer >Subject: Formatting a .txt file > >Hi, >In my webcat site, users have the ability to enter information (stories and >articles) into a textarea field. The field then uses a [writefile] context >to make a new file with the information contained within. > >My problem is in formatting the text file onto an html (tmpl) page in html >format. When I bring it in via an [include] tag, the carriage returns are >missing. When I place
 tags around the [include] the carriage returns>work, but the text doesn't wrap and I end up with long strings of textwhich>stretch out my tables.>>Is there any way to get both the carriage returns AND the wrapping text?>I've tried [input] and [raw] already to no avail.>>- --Michael Fichtenmayer>>>>>---------------------------------------------------------------------->>Date: 7 Nov 1998 22:34:40 -0800>From: PCS Technical Support >Subject: Re: Formatting a .txt file>>>My problem is in formatting the text file onto an html (tmpl) page in html>>format. When I bring it in via an [include] tag, the carriage returns are>>missing.>>I assume the carriage returns are there, but your browser ignores them>(only 
is interpreted as a line break in HTML). Try wrapping >[ConvertChars] around the the [include] to cause CR to be converted to
. > >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: Formatting a .txt file (Michael Fichtenmayer 1998)
  2. Re: Formatting a .txt file (Michael Fichtenmayer 1998)
  3. Re: Formatting a .txt file (PCS Technical Support 1998)
  4. Re: Formatting a .txt file (Peter Ostry 1998)
  5. Re: Formatting a .txt file (Michael Fichtenmayer 1998)
  6. Re: Formatting a .txt file (PCS Technical Support 1998)
  7. Formatting a .txt file (Michael Fichtenmayer 1998)
Actually I got the text wrapping to work. I just needed to make it wrap=hard. But, I'd rather do it with a virtual wrap, so I am going to try those db's out. Thanks for all the help. --Michael -----Original Message----- From: Nathan Hyde To: mfichten@icubed.com Date: Monday, November 09, 1998 7:40 PM Subject: Re: Formatting a .txt file >Michael, > >In case you were not able to get the standardConversions db to work for you, >I've enclosed a .zip file of 2 dbs, 1 for converting items in an existing >Database -> Email messages (or in your case, a text file), and another for >showing users what they typed on the form -> HTML for a >preview/confirmation... > >The textareas that folks use on our site contains the wrap=virtual tag... > >Here's an example of how to use the dbs: >[convertchars db=/db/dbtoEmailconversions.db][yourTextArea][/convertchars] > >Hope this works for you. (If all else fails, take Olin's suggestion of using >BBEdit or Tex-Edit Plus to check out >the invisible characters.) > >Nathan Hyde >Casady & Greene >email: nh_is@casadyg.com, nhyde@mail3.casadyg.com >web page: http://www.casadyg.com >MacBundle.com: http://www.macbundle.com >WinBundle.com: http://www.winbundle.com >_________________________________ >Date: 7 Nov 1998 20:26:54 -0800 >From: Michael Fichtenmayer >Subject: Formatting a .txt file > >Hi, >In my webcat site, users have the ability to enter information (stories and >articles) into a textarea field. The field then uses a [writefile] context >to make a new file with the information contained within. > >My problem is in formatting the text file onto an html (tmpl) page in html >format. When I bring it in via an [include] tag, the carriage returns are >missing. When I place
 tags around the [include] the carriage returns>work, but the text doesn't wrap and I end up with long strings of textwhich>stretch out my tables.>>Is there any way to get both the carriage returns AND the wrapping text?>I've tried [input] and [raw] already to no avail.>>- --Michael Fichtenmayer>>>>>---------------------------------------------------------------------->>Date: 7 Nov 1998 22:34:40 -0800>From: PCS Technical Support >Subject: Re: Formatting a .txt file>>>My problem is in formatting the text file onto an html (tmpl) page in html>>format. When I bring it in via an [include] tag, the carriage returns are>>missing.>>I assume the carriage returns are there, but your browser ignores them>(only 
is interpreted as a line break in HTML). Try wrapping >[convertchars] around the the [include] to cause CR to be converted to
. > >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/ > Michael Fichtenmayer

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:

[Webcat 2]Next (1997) Linux -> OS X (2002) converting tabs (1997) NEVERMIND! New syntax (2000) Applescript, WebDNA, and PDF (1997) WebCatalog Hosting (1998) For Grant: Webcatalog 4.0 - When will we be able to betatest it? (2000) Security Hole - NetCloak Update (1998) Random Order Sort? (2000) Show shoppingcart after remove last item (1997) WebCat2 - Getting to the browser's username/password data (1997) Up and running ... at last !! (1997) setLineitem blues (2000) Re: (1998) Searching multiple dbs (1998) More DateMath problems (1997) Country & Ship-to address & other fields ? (1997) popups, netscape vs explorer (1997) how to post without certain data appearing in the html source (2001) PROTECT PAGES (2002)