Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extra line breaks in text fields

Status
Not open for further replies.

mikepycroft

Programmer
Jan 3, 2002
11
GB
I have a Livelink workflow which collects comments on a document. Using a HTML form the user sees all the previous comments and can add their own. The new comments are then concatenated onto the original ones using a JavaScript function. The comments are then stored as a workflow attribute.

This works fine but I have a mysterious problem that any line breaks / carriage returns the user enters in their comments are being duplicated each time the comments are updated by another users.


For example the original comments are:
First line
Second line

These are stored in the wf_attrib table as a ntext value and you can see an ascii(10) & ascii(13) characters to separate the 2 lines.

In the form I retrieve the comments using the WebReport command:
<INPUT TYPE="hidden" NAME="txt_orig" value = "[LL_REPTAG_&workid WFATTR:wf_mltxt:DISPLAY /]" >

However when I display the comments I see the following displayed:
First line
Blank line
Second line

Printing out the ascii values of the text string, txt_orig, it shows that the variable txt_orig now contains ascii(10) ascii(13) ascii(10) ascii(13) between the 2 lines of text.

Any ideas?

I am using Livelink 9.7.1 on an MS SQL server 2005 platform.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top