On Tue, 22 Jun 2004 12:07:22 -0500
Dan Rue <drue at therub.org> wrote:

> On Tue, Jun 22, 2004 at 11:58:21AM -0500, Matt Murphy wrote:
> > Richard Hoffbeck wrote:
> > 
> > >Change the newlines to <BR> or <P> when you write it to the table
> > >cell.
> > 
> > 	But I can't figure out how to tell where to insert the <BR
> > 	/>'s upon 
> > insert... is there a way to find line breaks in a string? search
> > and replace?
> 
> The string has \n's in it, but html ignores them.  you need to
> either s/\n/<br>/ like Richard suggested.  Or, an easier way, is to
> just print the string in <pre></pre> tags :)

I don't know why my reply hasn't hit yet, but just use a
<textarea wrap="hard"> to get line breaks, then you actually get the newlines where the user had the text wrap, without this the textarea input is sent as a one-line string, unless the user pressed Return inside the textarea object.

Josh

_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
Help beta test TCLUG's potential new home: http://plone.mn-linux.org
Got pictures for TCLUG? Beta test http://plone.mn-linux.org/gallery
tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list