Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix spaceless tag deprecations (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
cocolabssas authored and sampart committed Oct 18, 2019
1 parent ddac599 commit ad813b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Resources/views/json-ld.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% if wo_breadcrumbs()|length %}
{%- spaceless -%}
{% apply spaceless %}
<script type="application/ld+json">
{
"@context": "http://schema.org",
Expand All @@ -20,5 +20,5 @@
]
}
</script>
{%- endspaceless -%}
{% endapply %}
{% endif %}
4 changes: 2 additions & 2 deletions Resources/views/microdata.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% if wo_breadcrumbs()|length %}
{%- spaceless -%}
{% apply spaceless %}
<ol id="{{ listId }}" class="{{ listClass }}" itemscope itemtype="http://schema.org/BreadcrumbList">
{% for b in breadcrumbs %}
<li{% if itemClass is defined and itemClass|length %} class="{{ itemClass }}"{% endif %} itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
Expand All @@ -20,5 +20,5 @@
</li>
{% endfor %}
</ol>
{%- endspaceless -%}
{% endapply %}
{% endif %}

0 comments on commit ad813b5

Please sign in to comment.