Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip trailing whitespace from the indent filter #681

Closed
ypid opened this issue Feb 8, 2017 · 1 comment
Closed

Strip trailing whitespace from the indent filter #681

ypid opened this issue Feb 8, 2017 · 1 comment

Comments

@ypid
Copy link

ypid commented Feb 8, 2017

Expected Behavior

first.line

....third.line

Actual Behavior

first.line
....
....third.line

Template Code/MWE

#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""first line

third line
"""

from jinja2 import Template

t = Template("{{ multline_string | indent(4) }}")
print(t.render(multline_string=__doc__).replace(" ", "."))

Your Environment

  • Python version: 2.7.9-1
  • Jinja version: 2.8-1~bpo8+1
@davidism
Copy link
Member

closed by #685

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants