Skip to main content

django-collapse-whitespace-templatetag

A simple whitespace-collapsing template tag for Django - useful for formatting plain text emails or when whitespace actually matters.

Installation

  • Install to PYTHONPATH, etc.

Then either:

  • Add collapse_whitespace_templatetag to settings.INSTALLED_APPS and then use:

    {% load collapse_whitespace_templatetag %}

    … in your templates.

Or:

  • Add collapse_whitespace_templatetag.templatetags.collapse_whitespace to your BUILTINS entry in settings.TEMPLATES (Django 1.9)

Or:

  • Add to builtins (< Django 1.9) with in some models.py:

    from django.template.base import add_to_builtins
    add_to_builtins('collapse_whitespace_templatetag.templatetags.collapse_whitespace'

Metadata

Release files for django-collapse-whitespace-templatetag 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-collapse-whitespace-templatetag 1.0.2
File Size Uploaded
django-collapse-whitespace-templatetag-1.0.2.tar.gz 2.7 kB Details

Release files / django-collapse-whitespace-templatetag-1.0.2.tar.gz

Download URL django-collapse-whitespace-templatetag-1.0.2.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e15ffb426a077c40ce9f9ffd64c39035c3f82b48936339f78664a7c757efaab3
BLAKE2b-256 checksum
How to use checksums
f66e17b926aad369e8a089a64602b78364fa4063a4b1d5b392a7637b9f515d22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file

1.0.1

1 release file

1.0.0

1 release file

0.0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page