RE: <textarea>

by "Brian A. Sayrs" <sayrs(at)southwindsolutions.com>

 Date:  Fri, 28 Jan 2000 14:00:06 -0800
 To:  "'Iztok Polanic'" <iztokp(at)amis.net>,
"hwg-techniques(at)hwg.org" <hwg-techniques(at)hwg.org>
  todo: View Thread, Original
Hi,

It is possible that the problem is that your message is being sent to =
you with newlines and carriage returns imbedded in the incoming message, =
but when you send the text back to that textarea the browser interprets =
it as two newlines (I have experienced this myself).

The solution, in PERL, is this:

$incoming_message =3D~ s/\r//g;=20

which will remove the offending carriage returns.  If you need to =
preserve the incoming message for some reason, do this:

($outgoing_message =3D $incoming_message) =3D~ s/\r//g;

HTH,
Brian


-----Original Message-----
From:	Iztok Polanic [SMTP:iztokp(at)amis.net]
Sent:	Friday, January 28, 2000 10:34 AM
To:	hwg-techniques(at)hwg.org
Subject:	<textarea>

 << File: ATT00003.txt; charset =3D iso-8859-2 >>=20

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.