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 withanywhere from 10 to 100 sentences per field. What I was asking to do is toforce the insertion of a
break, say after every 10 sentences, but on theresults/ displayed side, rather than including them in the database. Maybe itwould 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 inthe 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]webmastermetropolitan community collegeskansas city, missourihttp://www.kcmetro.cc.mo.usmailto:herriman@kcmetro.cc.mo.us
Associated Messages, from the most recent to the oldest:
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 withanywhere from 10 to 100 sentences per field. What I was asking to do is toforce the insertion of a
break, say after every 10 sentences, but on theresults/ displayed side, rather than including them in the database. Maybe itwould 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 inthe 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]webmastermetropolitan community collegeskansas city, missourihttp://www.kcmetro.cc.mo.usmailto: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)