[web2py] Re: Difference in TEXT field presentation between View and Edit modes

2015-02-13 Thread Gary Cowell
Many thanks, that worked great. Looks good too in the way it formats it. On Friday, 13 February 2015 19:54:15 UTC, Niphlod wrote: > > HTML doesn't preserve line breaks by default: that's why there are > or tags > > you need a "custom" represent function to fill the cell of the grid with >

[web2py] Re: Difference in TEXT field presentation between View and Edit modes

2015-02-13 Thread Niphlod
HTML doesn't preserve line breaks by default: that's why there are or tags you need a "custom" represent function to fill the cell of the grid with *thetext* instead of simply *thetext .*Use something like db.e5systemstatus.patchlog.represent = lambda value, row : PRE(value) and it sh