<cfset newcomments = ReplaceList(getcomments.comments, "#Chr(10)#,#Chr(13)
#", "<br>")>


Duncan Cumming
IT Manager

http://www.alienationdesign.co.uk
mailto:[EMAIL PROTECTED]
Tel: 0141 575 9700
Fax: 0141 575 9600

Creative solutions in a technical world

----------------------------------------------------------------------
Get your domain names online from:
http://www.alienationdomains.co.uk
Reseller options available!
----------------------------------------------------------------------
----------------------------------------------------------------------


                                                                                       
                                
                    "Lovelock,                                                         
                                
                    Richard J"               To:     "'[EMAIL PROTECTED]'" <[EMAIL 
PROTECTED]>     
                    <richard.lovelock        cc:                                       
                                
                    @cgey.com>               Subject:     RE: [ cf-dev ] Keeping text 
formatting                       
                                                                                       
                                
                    27/11/2003 15:19                                                   
                                
                    Please respond to                                                  
                                
                    dev                                                                
                                
                                                                                       
                                
                                                                                       
                                



can you put multiple replaces in the same replace function?

i tried chr(10) on its own (in place of the 13) and this made no difference

you can try it in the comments box here:
http://fclounge.cfdeveloper.co.uk/commentadd.cfm

_______________________________________________________
*  Regards,
                Richard Lovelock
Westminster City Council - Web Support
Cap Gemini Ernst & Young
Southbank
95 Wandsworth Road
London
SW8 2HG
(     0870 906 7482

_______________________________________________________


-----Original Message-----
From: Stephen Pope [mailto:[EMAIL PROTECTED]
Sent: 27 November 2003 15:14
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] Keeping text formatting


You might also try #chr(10)# as well as #chr(13)#

-----Original Message-----
From: Lovelock, Richard J [mailto:[EMAIL PROTECTED]
Sent: 27 November 2003 15:13
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] Keeping text formatting

cheers Robin.....

I tried:

                  <tr class="matchtableleft">
                    <td valign="top">Comments:</td>

<td>#replace("#getcomments.comments#",chr(13),"<br>","all")#</td>
                  </tr>

but it has made no difference?? have i got the syntax wrong?


_______________________________________________________
*  Regards,
                Richard Lovelock
Westminster City Council - Web Support
Cap Gemini Ernst & Young
Southbank
95 Wandsworth Road
London
SW8 2HG
(     0870 906 7482

_______________________________________________________


-----Original Message-----
From: Robin Griffiths [mailto:[EMAIL PROTECTED]
Sent: 27 November 2003 15:05
To: [EMAIL PROTECTED]
Subject: Re: [ cf-dev ] Keeping text formatting


2 options I can think of

1.  Use <pre></pre> tags to output exactly as the user input the code.
2.  User replace(myFieldContents,chr(13),"<br>","ALL")
  ----- Original Message -----
  From: Lovelock, Richard J
  To: 'cflist'
  Sent: Thursday, November 27, 2003 3:02 PM
  Subject: [ cf-dev ] Keeping text formatting


  I have a form with a multi line text box.

  On the action page - i am trying to display the contents of the text
box
but
  it is not formatting the line feeds/carriage returns properly.

  If the user enters some text and hits enter on the text box after
writing
  some text to start a new line and then enters more text, then the
resultant
  action page just puts 1 space between the two blocks of text instead
of
  starting the text on a new line.

  If the user enters some text then hits enter twice to effectively
start a
  new line of text with a line of gap in between the last one - then the
  action page renders this correctly.

  Do I need to use a certain function to uphold the carriage returns and
line
  feeds accurately? I had a look at HTMLEditFormat and HTMLCodeFormat
but
  neither upholds the formatting

  _______________________________________________________<?xml:namespace
  prefix = o ns = "urn:schemas-microsoft-com:office:office" />

  *  Regards,
                  Richard Lovelock

  Westminster City Council - Web Support
  Cap Gemini Ernst & Young
  Southbank
  95 Wandsworth Road
  London
  SW8 2HG

  (     0870 906 7482

  _______________________________________________________




  =======================================================
  This message contains information that may be privileged or
confidential
and is the property of the Cap Gemini Ernst & Young Group. It is
intended
only for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy,
disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all
copies
of this message.
  =======================================================



=======================================================
This message contains information that may be privileged or confidential
and is the property of the Cap Gemini Ernst & Young Group. It is
intended only for the person to whom it is addressed. If you are not the
intended recipient, you are not authorised to read, print, retain, copy,
disseminate, distribute, or use this message or any part thereof. If you
receive this message in error, please notify the sender immediately and
delete all copies of this message.
=======================================================


--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]


--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]


=======================================================
This message contains information that may be privileged or confidential
and is the property of the Cap Gemini Ernst & Young Group. It is intended
only for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy,
disseminate, distribute, or use this message or any part thereof. If you
receive this message in error, please notify the sender immediately and
delete all copies of this message.
=======================================================


--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]






-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to