hi, Andand
in Django template, it can be wrote like this:
{{ entry.content|breakelines }}

it will change '\r\n' to '<br />', and web.py will support it?
:)

and that, i try to do it like Adam says, it works.
3Q

On 10/14/07, Ken <[EMAIL PROTECTED]> wrote:
>
> en, i tred it like Anand write like this before.
> but, if longer longer content and not \r\n.... it will not breakelines...
> it breakes my layout.
>
> On 10/14/07, Anand <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > # view.html
> > > ...
> > >             <div class="entry_content">
> > >                 $make_html(entry.excerpt)
> > >                 $entry.content
> > >             </div>
> >
> >
> > Why not do this:
> >
> >      <div class="entry_content">
> >          <pre>$entry.excerpt</pre>
> >          $entry.content
> >      </div>
> >
> > > >
> >
>
>
> --
> 每个人都有一片属于自己的森林, 迷失的人迷失了, 相逢的还会再相逢...
> Gtalk: iexper(at)gmail.com
>



-- 
每个人都有一片属于自己的森林, 迷失的人迷失了, 相逢的还会再相逢...
Gtalk: iexper(at)gmail.com

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

Reply via email to