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:
Protect (1997)
Online reference (1997)
[OT] Patent Attorney (2002)
Almost a there but..bye bye NetCloak (1997)
[LOOKUP] (1997)
WebCat website for developers and hosters (2001)
Using [Showif] tag. Mac (1997)
Converting order file to database (1998)
Orders to FMPro (2005)
Simple way to create unique SKU (1997)
WebDNAdev.net Widget (2003)
Running 2 two WebCatalog.acgi's (1996)
Re1000001: Setting up shop (1997)
Adding Shipping Costs based on percent of subtotal (1997)
Directory Overload (1998)
Manual and Mime WebDNA 5 (2003)
how to put/keep product customization info in basket? (1998)
.. more on sliding discounts... (1997)
Not really WebCat (1997)
Question re: FlushDatabases (1997)