Sounds like a job for "fconfigure" to me. Not sure though it that would replace the characters when using "puts" to write a string that already has newlines in them, or if it only does it it for the newline it automaticaly inserts after a puts.
Try it and let me know! ;-) Hope that helps, Bas. Tom Jackson said: > I'm wondering what I am doing wrong. > > I have a simple test case form which contains a single text area and > uses method=POST. > > To test, when the data arrives I do: > > set text [ns_queryget text] > set fd [open /tmp/test-text.txt w+] > puts $fd $text > close $fd > > ns_return 200 text/plain $text > > The contents of /tmp/text-text.txt is the same as the input except > newlines are converted to the network newline crlf, and show up in vi > with each line ending in ^M. > > nsd -V returns: > AOLserver/4.0 (aolserver4_0) > CVS Tag: $Name: aolserver_v40_r1 $ > Built: May 10 2004 at 15:05:48 > Tcl version: 8.4 > Platform: linux > > My browser is Mozilla 1.0.1 > > This happens even if I copy/paste good text into the textarea. > > tom jackson > > > -- > AOLserver - http://www.aolserver.com/ > > To Remove yourself from this list, simply send an email to > <[EMAIL PROTECTED]> with the > body of "SIGNOFF AOLSERVER" in the email message. You can leave the > Subject: field of your email blank. > -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
