This topic is locked

Line Breaks

3/9/2006 11:13:49 PM
PHPRunner General questions
C
clayway author

I am have generated a display list of my table and one of the fields is of type TEXT, so I have entered on the edit page a bunch of line breaks, but in the list the line breaks don't show.
I know php has a nl2br function, but I am really not a coder..and just wondered if this is possible when viewing table lists
Thanks
Clay

Sergey Kornilov admin 3/13/2006

Clay,
open ..._list.php file and replace

echo ProcessLargeText(GetData($rsData,$data,"Field", "..."),$iquery);



with

echo nl2br(ProcessLargeText(GetData($rsData,$data,"Field", "..."),$iquery));



where Field is your field name.

D
Dale 3/13/2006

Can this safely be applied to all ProcessLargeText lines in the list.php or must it be applied

to only the field in question on the produced ..._list.php.

Sergey Kornilov admin 3/14/2006

Clay,
yes, you can apply this function to all ProcessLargeText lines in the ..._list.php.