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.
  =======================================================

Reply via email to