I've never had that experience... Although, if you wanted to make this
function work for both windows and mac/*nix deployments, this revision
would get you there:

function formatparagraph(str) {
        return rereplace(str,"[#chr(13)##chr(10)#]+","<br />","ALL");
}

Of course the trailing / is for xhtml compatibility.

But then, I like to have a closing </p> tag myself because CSS allows
you to apply styles to pagragraphs, but it only works if the paragraph
is closed. I use a phormat() function in the framework which applies
paragraphformat() initially then adds some additional formatting. It
also has some additional logic to conditionally skip certain html
segments, like textareas, lists, etc. It used to bother me that
paragraphformat drops the closing </p> but I don't really think about
it anymore because even if it were correct, the function provides less
formatting than I want anyway.


> That�s why I (probably most) use something more like...

> Function formatparagraph(str)
> {
> Return replace(str, chr(13) & chr(10), "<br>", "ALL");
> }

> #formatparagraph(thetext)#

> I've always hated the fact that paragraphformat() double
> spaced single line
> breaks!

> -----Original Message-----
> From: Bryan F. Hogan
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 14, 2005 9:46 AM
> To: CF-Talk
> Subject: FW: paragraphFormat()

> Am I the only one that is angered by the fact that
> paragraphFormat() bites?
> MM needs to fix the output or get rid of the tag. I know
> it is a carry over
> from the beginning, but it has always been invalid.



s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://macromedia.breezecentral.com/p49777853/
http://www.sys-con.com/author/?id=4806
http://www.fusiontap.com



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203039
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to