Thursday, March 18, 2010

Re: models.TextField --> \r\n in DB

Hi Thomas,

Django's normalize_newlines function should do the trick. You can import it from django.utils.text. See this page for an example:

Best,
Paulo

On Thu, Mar 18, 2010 at 4:27 PM, Thomas Guettler <hv@tbz-pariv.de> wrote:
>
> Hi,
>
> I just discovered that I have a random mix auf rows
> some with \r\n and some with only \n.
>
> I guess it depends on using a windows or linux browser
> to access the app.
>
> I use models.TextField (with django 1.0).
>
> Has someone seen this, too?
>
> What do you do?
>
>  Thomas
>
> --
> Thomas Guettler, http://www.thomas-guettler.de/
> E-Mail: guettli (*) thomas-guettler + de
>
> --
> 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 django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment