purcell / airspeed

A lightweight Python template engine compatible with Velocity, used in OpenStack
Other
91 stars 37 forks source link

Wrong newline/whitespace behavior #23

Open memeplex opened 8 years ago

memeplex commented 8 years ago

See the section "Formatting Issues" in https://velocity.apache.org/engine/releases/velocity-1.5/user-guide.html, about gobbling up excess whitespace. It's not the behavior of airspeed.

purcell commented 8 years ago

Thanks for getting in touch. Yes, this is noted in the README:

The output of templates in Airspeed is not yet 'whitespace compatible' with Velocity's rendering of the same templates, which generally does not matter for web applications.

I haven't had the opportunity to tackle this, but if you fancy digging in I'd be happy to take care of incorporating any related changes you might have and releasing them.