It's been a while since this discussion, but…

On Monday, February 28, 2011 4:37:08 AM UTC-5, Armin Ronacher wrote:
>
> On 2/27/11 1:02 PM, Tomas Gavenciak wrote:
> > I guess that dealing with the last newline is not an issue that would
> > deserve a new flag -- if you ALWAYS strip it and state that in the
> > docs, that seems like a good solution to me (and is the current
> > behaviour). Even if you drop the splitlines() line, it can be easily
> > done in _normalize_newlines(). If somebody (like me ;-) wants
> > more/less newlines, it is easy to just append them. The current docs
> > just do not state the current behaviour (nor do they explain how is
> > newline_sequence used for) and confuse (me) with stating that
> > whitespace is not touched.
> I will update the documentation for sure and consider adding a flag that 
> controls the trailing one.
>
I just submitted a pull request adding this flag [1].  It took a while for 
the doc updates to land upstream [2], so I thought I'd bump things here as 
well.  There's quite a PR/issue backlog on GitHub.  Is development still 
ongoing?

[1]: https://github.com/mitsuhiko/jinja2/pull/170
[2]: https://github.com/mitsuhiko/jinja2/pull/137

-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pocoo-libs/-/581Mjub-RCsJ.
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/pocoo-libs?hl=en.

Reply via email to