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]

Reply via email to