Re: HTML Mail & Line breaks...

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 59191
interpreted = N
texte = Yes... more a case of is there a way to make words wrap? I don't know if it is possible to come up with some sort of algorythm that would check for number of characters in a line but also check for spaces to find words. Jeez... gets a bit confusing as you would then be checking line length and length of the words and then working out how many of those words you could use before having to wrap... I dunno... Thats why I posted to the list... Although I am pondering the whole thing... Anyways... if anyone has any pointer on where to start looking context wise then I am grateful or am I going to have to start playing with grep and the likes? Cheers Alan Donovan Brooke wrote: > Hi Alan, > > So it appears your question is "how do I make the lines break within > a text sendmail context"? > > Donovan > > > > Alan White wrote: > >> Hi Everyone >> >> I have just created a module for generating our html mailshots but I >> am a little lost as to how to insert a line break when the text gets >> too long for the line in the text version of the mail. I am >> basically populating a db and then using writefile to create my >> mailshot document. >> >> I figured I could maybe insert line break every so many characters to >> accomodate something like the following:- >> >> ================================================ >> Established in New York City in 2003, Callous >> footwear is the most exciting and innovative >> footwear to hit these shores. >> >> If I was to do this using [countchars] or something then I may end up >> with and not maintain proper word structure (ie word wrapping):- >> >> ================================================ >> Established in New York City in 2003, Callous fo >> otwear is the most exciting and innovative footw >> ear to hit these shores. >> >> I'm not sure if I am barking up the wrong tree or not but I figured I >> would see if anyone had any feedback on what I am trying to acheive >> >> I hope someone can help. >> >> Regards >> Alan >> >> ------------------------------------------------------------- >> 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: HTML Mail & Line breaks... ( Alan White 2004)
  2. Re: HTML Mail & Line breaks... ( Donovan Brooke 2004)
  3. Re: HTML Mail & Line breaks... ( Gary Krockover 2004)
  4. Re: HTML Mail & Line breaks... ( Donovan Brooke 2004)
  5. Re: HTML Mail & Line breaks... ( Alan White 2004)
  6. Re: HTML Mail & Line breaks... ( Donovan Brooke 2004)
  7. HTML Mail & Line breaks... ( Alan White 2004)
Yes... more a case of is there a way to make words wrap? I don't know if it is possible to come up with some sort of algorythm that would check for number of characters in a line but also check for spaces to find words. Jeez... gets a bit confusing as you would then be checking line length and length of the words and then working out how many of those words you could use before having to wrap... I dunno... Thats why I posted to the list... Although I am pondering the whole thing... Anyways... if anyone has any pointer on where to start looking context wise then I am grateful or am I going to have to start playing with grep and the likes? Cheers Alan Donovan Brooke wrote: > Hi Alan, > > So it appears your question is "how do I make the lines break within > a text sendmail context"? > > Donovan > > > > Alan White wrote: > >> Hi Everyone >> >> I have just created a module for generating our html mailshots but I >> am a little lost as to how to insert a line break when the text gets >> too long for the line in the text version of the mail. I am >> basically populating a db and then using writefile to create my >> mailshot document. >> >> I figured I could maybe insert line break every so many characters to >> accomodate something like the following:- >> >> ================================================ >> Established in New York City in 2003, Callous >> footwear is the most exciting and innovative >> footwear to hit these shores. >> >> If I was to do this using [countchars] or something then I may end up >> with and not maintain proper word structure (ie word wrapping):- >> >> ================================================ >> Established in New York City in 2003, Callous fo >> otwear is the most exciting and innovative footw >> ear to hit these shores. >> >> I'm not sure if I am barking up the wrong tree or not but I figured I >> would see if anyone had any feedback on what I am trying to acheive >> >> I hope someone can help. >> >> Regards >> Alan >> >> ------------------------------------------------------------- >> 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/ Alan White

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:

Replacing entry (1998) Emailer on NT CAN'T handle large email files (1997) label?! (2005) WC2.0 Memory Requirements (1997) Stinkin' [Referrer] (1998) [WebDNA] ww- whole word in search tag (2013) several .hdr files with one db file? (1999) SetLineItem (1997) [BULK] [WebDNA] [BULK] Console / WebDNA no connection to module (2011) emailer (1997) Help! WebCat2 bug (1997) User Defined Sorting (1997) Two submit buttons ? (1997) Mac v. NT (1998) Calculating multiple shipping... (1997) Server capacity (2003) WCf2 and nested tags (1997) Help! WebCat2 bug (1997) Just Testing (1997) WebCat2 Append problem (B14Macacgi) (1997)