Hi Peter,

This is the custom tag I am using... Is this similar to what you were using?

============================================================================
===========

<cfif isdefined("attributes.inputstring")>
        
        
    <cfset outputstring = attributes.inputstring>
        <cfset outputstring = Replace(#outputstring#,chr(10), "<br>",
"ALL")>
        <cfset outputstring = Replace(#outputstring#,chr(10)+chr(10),
"<br>", "ALL")> 
        
<cfelse>
        <b>No String Defined!!</b>
</cfif>

<cfset caller.outputstring = outputstring>

============================================================================
=============


Jonathan Trow

Circle.com
100 Victoria St 
Bristol 
BS1 6HE 
Ph   :  0117 9146266 
Mob :  07989 502915 
ICQ  :  71524192  


-----Original Message-----
From: Peter Ivanick [mailto:[EMAIL PROTECTED]]
Sent: 25 July 2000 13:29
To: [EMAIL PROTECTED]
Subject: Re: Text formatting problem


Hi Jonathan -

I had a similar problem after a file had gone through a PLP, and I fixed
it by just replacing CHR10 with <BR> tags & CHR10+CHR10 with <P> tags --
even though the hex code shows that the CHR13 is in there, this seemed
to work well for me, give it a shot.

Jonathan Trow wrote:
> 
> I am trying to read in a text file then replace the line feeds and
carriage
> returns (ASCII values chr13 + chr10) with a <br> tag. I understand that
> these two are commonly used together, but when I use the replace function
it
> doesn't seem to recognise it. The problem only seems to happen with this
> combination, it'll work if I use any other ASCII values.
> 
> The problem only occurs when I use cfhttp to retrieve the file, if I enter
> the text via a form , It'll work...
> 
> any ideas guys?
> 
> Jon Trow
> 
> Circle.com
>
----------------------------------------------------------------------------
--
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk
or send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body.

-- 
Peter Ivanick
Web Developer 
School of Veterinary Medicine, University of Pennsylvania
Email: [EMAIL PROTECTED]    
Phone: 215.573.2306     Fax: 215.573.8777
http://www.vet.upenn.edu/
----------------------------------------------------------------------------
--
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk
or send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body.
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to