[thelist] CSS White-space

Jonathan_A_McPherson at rl.gov Jonathan_A_McPherson at rl.gov
Thu Aug 15 13:14:01 CDT 2002


> Anyone have a suggestion?  Either to get this to work, or some other way
to accomplish my goal?

I've always gotten around this by replacing raw linefeeds from the SQL
database with the "<br />" tag. In ASP, this is something like (you'll need
adovbs.inc):

Replace(myText, vbNewLine, "<br />")

In CF, it's something like

Replace(myText, Chr(13) & Chr(10), "<br />", "ALL")

This preserves the paragraphs and lines and still allows the text to flow
and word-wrap as desired. It's a nice compromise (IMHO).

--
Jonathan McPherson, LMIT/SD&I
Software Engineer & Web Systems Analyst
email / jonathan_a_mcpherson at rl dot gov



More information about the thelist mailing list