Re: Newline stripping in templates: the dnl way
> Django templates are useful (and used) for all sorts of text-based > formats. For some of these, an exact control over whitespace is needed > throughout the entire file (eg. text/plain), Agreed. When I started using Django templates I was very surprised at the output I was seeing. After a while I realised that the thing that suprised me was that newlines were being output for what I considered to be just 'directives' -- that is, lines that contained tags, not content. For example, {% if %} and {% endif %} tags on lines by themselves. Honestly, my use case then was to make my HTML look pretty, so was able to let it go pretty easily. Recently however I used the template system to produce an email with a textual pricing table, and there the lack of easy whitespace control hurt there. Would it be feasible to add some logic, something along the lines of: "Template lines containing just tags with no literal content do not produce a line in the output (unless of course the tag itself produces one)" After all, new lines are easy to add, but currently painful to suppress... Cheers, Leon -- Leon Matthews BSc Technical Director, Messiah Ltd. work: http://messiah.co.nz/ home: http://lost.co.nz/ -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.
Re: Newline stripping in templates: the dnl way
> I believe that is what has been suggested, and tickets produced by > SmileyChris and worked on by others to that end, at > https://code.djangoproject.com/ticket/2594 That's... quite fantastic. A actual patch for the exactly the behaviour I had in mind. Why was it not commited for 1.3 or 1.4? From my perspective it's a big win, and reading the bug notes, the issues -- backwards combatibility, docs, tests -- seem to have been addressed. It looks like a lot of work looks went into this patch, why did it stall? Leon -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.
Re: Newline stripping in templates: the dnl way
> Same reason any ticket stalls - it seems that nobody felt strongly > enough about it to put the time into reviewing and thoroughly testing > the patch and marking it Ready for Checkin. If you'd like to see it in > (post 1.4 at this point, of course), feel free to do that! Fair enough. I realised after posting that my question was particularly poorly timed, given where we are in the release cycle. I apologise for that -- I was overcome with excitement to find that somebody had already written the patch I wanted! -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.
Re: Newline stripping in templates: the dnl way
On 2 March 2012 09:45, Carl Meyer wrote: > Same reason any ticket stalls - it seems that nobody felt strongly > enough about it to put the time into reviewing and thoroughly testing > the patch and marking it Ready for Checkin. If you'd like to see it in > (post 1.4 at this point, of course), feel free to do that! Done! :-) I've created a new version of the patch against Django 1.5-dev, which passes all tests, etc... I've attached it to the ticket directly: https://code.djangoproject.com/ticket/2594 Cheers, Leon -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.
Re: Goodbye, Malcolm
On 20 March 2013 06:01, Jacob Kaplan-Moss wrote: > We have difficult news: Malcolm Tredinnick has passed away. What a shock. Malcolm was a great guy, and a huge asset to our community. I had the pleasure of hearing him talk in Wellington. He will be missed... -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers?hl=en. For more options, visit https://groups.google.com/groups/opt_out.