django-cms / djangocms-style

django CMS Style is a plugin for django CMS that allows you to create a HTML container containing classes, styles, ids and other attributes.
https://marketplace.django-cms.org/en/addons/browse/djangocms-style/
Other
38 stars 22 forks source link

Overzealous whitespace removal #49

Closed bartTC closed 5 years ago

bartTC commented 5 years ago
# The formatting of this file is very specific to remove unnecessary whitespaces

 id="{{ instance.id_name }}"{% endif %}{% spaceless %}
{% endspaceless %}{% if instance.class_name or instance.additional_classes %}class="{% spaceless %}

This creates a HTML tag ala id="foo"class="bar"