RE: Forcing Paragraph Breaks on Results

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 21890
interpreted = N
texte = Sometimes, being on the digest is kind of a pain 8^) Dave MacLea said: >[ConvertChars][fieldName][/ConvertChars] will do what you want.And PCS said: >This will work as long as the original text has carriage returns in it, >because it will convert those to HTML
tags. Not sure if this is what >you were originally asking for, but if so, then this is the correct >solution.Ken also said at some point: >A long time ago, PCS found a way to make [boldwords] put tags around a >multi-character match string, so I see no reason why they cannot use a similar >technique to replace one match string with a different string ...Then Olin offered: >We use this to search a string for another string and replace with another >string. To use, create 2 include files as follows: > >=== begin includes/replaceString.inc=== >[math >show=f]ilen=[countchars][sOriginal][/countchars][/math][text]sTmp=[/text][ma >th show=f]iBInd=1[/math][math show=f]iEndx=1[/math][math >show=f]iFlen=[countchars][sFind][/countchars] Our users routinely paste long clippings into database fields - clippings with anywhere from 10 to 100 sentences per field. What I was asking to do is to force the insertion of a

break, say after every 10 sentences, but on the results/ displayed side, rather than including them in the database. Maybe it would be easier to insert them as part of the original [append]. . . ?Ken's (and now my) desire to have an additional mechanism like [boldwords] available to tag certain strings would be the most cherished solution, but in the meantime, I'll prolly give Olin's intricate [include] files a go.Sorry if my intentions weren't more clear from the start. Thanks very much to all!!-- [/dave] webmaster metropolitan community colleges kansas city, missouri http://www.kcmetro.cc.mo.us mailto:herriman@kcmetro.cc.mo.us 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)
Sometimes, being on the digest is kind of a pain 8^) Dave MacLea said: >[convertchars][fieldName][/ConvertChars] will do what you want.And PCS said: >This will work as long as the original text has carriage returns in it, >because it will convert those to HTML
tags. Not sure if this is what >you were originally asking for, but if so, then this is the correct >solution.Ken also said at some point: >A long time ago, PCS found a way to make [boldwords] put tags around a >multi-character match string, so I see no reason why they cannot use a similar >technique to replace one match string with a different string ...Then Olin offered: >We use this to search a string for another string and replace with another >string. To use, create 2 include files as follows: > >=== begin includes/replaceString.inc=== >[math >show=f]ilen=[countchars][sOriginal][/countchars][/math][text]sTmp=[/text][ma >th show=f]iBInd=1[/math][math show=f]iEndx=1[/math][math >show=f]iFlen=[countchars][sFind][/countchars] Our users routinely paste long clippings into database fields - clippings with anywhere from 10 to 100 sentences per field. What I was asking to do is to force the insertion of a

break, say after every 10 sentences, but on the results/ displayed side, rather than including them in the database. Maybe it would be easier to insert them as part of the original [append]. . . ?Ken's (and now my) desire to have an additional mechanism like [boldwords] available to tag certain strings would be the most cherished solution, but in the meantime, I'll prolly give Olin's intricate [include] files a go.Sorry if my intentions weren't more clear from the start. Thanks very much to all!!-- [/dave] webmaster metropolitan community colleges kansas city, missouri http://www.kcmetro.cc.mo.us mailto:herriman@kcmetro.cc.mo.us dave herriman

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:

tabs as delimiters (2004) math on date? (1997) Intermitent problem using [referrer] (1997) Upload Progress Bar (2003) [OT] What System Software? (2003) Some pointers please (2008) Secure Server (1997) Variable Prices (1998) Bug Report, maybe (1997) Snake Bites (1997) Showif, Hideif reverse logic ? (1997) OT: JavaScript question (2001) 2.0Beta Command Ref (can't find this instruction) (1997) WebCatalog for guestbook ? (1997) Pass a form (2003) writing orders to a db (1997) RE: Problem (1997) PC site chck pls (2003) Configuring E-mail (1997) formatting search results (1999)