Re: Forcing Paragraph Breaks on Results

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 21856
interpreted = N
texte = [ConvertChars][fieldName][/ConvertChars] will do what you want.At 11:07 AM 12/16/98, dave herriman wrote: >I wanted to ask for a little help in coming up with possible solutions for >this. Can anyone think of a way to put (forced) paragraph breaks inside the >results of a search? I have users copying and pasting long passages of text >and [adding] these to a db. Trouble is when they're displayed, it all runs >together in a long string, flush left and fit within the boundaries of a frame >or whatever, but still one very long string. > >Short of making the users copy/paste into separate, multiple textarea fields >(for the individual paragraphs) that would be formatted with hard breaks >between them on the results page, is there a way to [getChars] or something, >looking for the end of a sentence, insert the HTML break(s), then pick up the >rest of the text with additional [getChars]/paragraph sets as needed all the >way to the end?? Sounds kind of like the way [boldWords] works on a result, >but this would be searching for a particular string like .(space), then >adding an HTML

before continuing. > >Sort of what I had in mind, but not quite: >[getChars start=1&end=400][fieldName]

[/getChars] >[getChars start=401&end=800][fieldName]

[/getChars] >[getChars start=801&end=10000][fieldName]

[/getChars] > >Tell me there's a better way! Thanks. > >-- > >[/dave], on digest > > >webmaster >metropolitan community colleges >kansas city, missouri >http://www.kcmetro.cc.mo.us >mailto:herriman@kcmetro.cc.mo.us o--------------- Dave MacLeay --+ o----------- Digital Frontier --+ o--------------- 802.253.8612 --+ o--- dave@digitalfrontier.com --+ Associated Messages, from the most recent to the oldest:

    
  1. RE: Forcing Paragraph Breaks on Results (dave herriman 1998)
  2. RE: Forcing Paragraph Breaks on Results - Yes you can replace String for String! (Olin Lagon 1998)
  3. Re: Forcing Paragraph Breaks on Results (PCS Technical Support 1998)
  4. Re: Forcing Paragraph Breaks on Results (Dave MacLeay 1998)
  5. Re: Forcing Paragraph Breaks on Results (Kenneth Grome 1998)
  6. Re: Forcing Paragraph Breaks on Results (Kenneth Grome 1998)
  7. Re: Forcing Paragraph Breaks on Results (Kenneth Grome 1998)
  8. Re: Forcing Paragraph Breaks on Results (PCS Technical Support 1998)
  9. Re: Forcing Paragraph Breaks on Results (Dave MacLeay 1998)
  10. Forcing Paragraph Breaks on Results (dave herriman 1998)
[convertchars][fieldName][/ConvertChars] will do what you want.At 11:07 AM 12/16/98, dave herriman wrote: >I wanted to ask for a little help in coming up with possible solutions for >this. Can anyone think of a way to put (forced) paragraph breaks inside the >results of a search? I have users copying and pasting long passages of text >and [adding] these to a db. Trouble is when they're displayed, it all runs >together in a long string, flush left and fit within the boundaries of a frame >or whatever, but still one very long string. > >Short of making the users copy/paste into separate, multiple textarea fields >(for the individual paragraphs) that would be formatted with hard breaks >between them on the results page, is there a way to [getchars] or something, >looking for the end of a sentence, insert the HTML break(s), then pick up the >rest of the text with additional [getchars]/paragraph sets as needed all the >way to the end?? Sounds kind of like the way [boldwords] works on a result, >but this would be searching for a particular string like .(space), then >adding an HTML

before continuing. > >Sort of what I had in mind, but not quite: >[getChars start=1&end=400][fieldName]

[/getChars] >[getChars start=401&end=800][fieldName]

[/getChars] >[getChars start=801&end=10000][fieldName]

[/getChars] > >Tell me there's a better way! Thanks. > >-- > >[/dave], on digest > > >webmaster >metropolitan community colleges >kansas city, missouri >http://www.kcmetro.cc.mo.us >mailto:herriman@kcmetro.cc.mo.us o--------------- Dave MacLeay --+ o----------- Digital Frontier --+ o--------------- 802.253.8612 --+ o--- dave@digitalfrontier.com --+ Dave MacLeay

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:

Running WebCat from a CD-ROM (1997) new PurgeDatabase command? (was NT vs Mac) (1997) D'oh. (2003) Re[3]: 2nd WebCatalog2 Feature Request (1996) Who's going to MacWorld? (1999) Checkboxes (1998) Banner DNA (1997) [LOOKUP] (1997) OT: Flash artist needed (2005) Pgp&emailer (1997) [WebDNA] Sales Tax on CUstom WebDNA Site (2008) [date] formatting bug inside [orderfile]? (1998) Error Lob.db records error message not name (1997) WebCatalog can't find database (1997) The Form authentication trick (2000) Search returns all, not 20 (1997) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) Generating Report Totals (1997) Target wit redirect (1998) Fixed: 2cd pair of eyes please. (2003)