Newlines characters do not break lines in HTML. You need <br> in strings to
show text in few lines in list view.

2007/5/10, Michael Lake <[EMAIL PROTECTED]>:
>
>
> Michael Lake wrote:
> > Alexander Pugachev wrote:
> >>What is the type of the field? It should be TextField?
> >
> > Yes it is:
> >    description = models.TextField(core=True)
>
> To be more precise; the new lines do not show when the admin interface
> just displays
> the field but it does show the newlines when you click on the rows ID and
> edit that row.
>
> >>>Hi all
> >>>
> >>>I have a content field which has newlines in it. When I do a select
> from
> >>>the database of that field I get the output like this:
> >>>line 1
> >>>line 2
> >>>
> >>>But when I view this in the admin interface I get
> >>>line 1 line 2
> >>>
> >>>How can I get the admin interface to not ignore newlines?
> >>>
> >>>Mike
>
>
> --
> Michael Lake
> Computational Research Support Unit
> Science Faculty, UTS
> Ph: 9514 2238
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to