Hello there,

I have defined a 'text' field in the table. The content consists of 
multiple paragraphs, when displayed in the view the content squeezes into a 
single line. It seems all 'enter' in original text was replaced by a 
"space". How can I display the text as paragraphs as it is input? Thanks 
for any replay.

related piece of code:

#Model
db.define_table('t_leads',
    Field('f_owner', type='string',
          label=T('Owner')),
    Field('f_location', type='string',
          label=T('Location')),
    Field('f_status', type='string',
          label=T('Status')),
    Field('f_description', type='text',
          label=T('Description')),
    auth.signature,

    format='%(f_lead_designation)s',
    migrate=settings.migrate)


#View
<td bgcolor="#FFFFFF">{{=lead.f_description}}</td>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to