Skip to content

Commit

Permalink
Font override bug fix.
Browse files Browse the repository at this point in the history
Fixed a big where the output font in styles was’t pure HTML.
  • Loading branch information
Anders Svensson committed Sep 7, 2017
1 parent c91ca93 commit 288e128
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions craft/templates/_includes/macros.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% macro customFont(selector, font, size) %}
{% if font|length %}
{{ selector }}, .{{ selector }} {
font-family: {{ font }};
font-family: {{ font|raw }};
{% if size|length %}
font-size: {{ size }};
{% endif %}
Expand All @@ -16,7 +16,7 @@
{% macro customDisplayFont(selector, font, size) %}
{% if font|length %}
.{{ selector }} {
font-family: {{ font }};
font-family: {{ font|raw }};
{% if size|length %}
font-size: {{ size }};
{% endif %}
Expand Down

0 comments on commit 288e128

Please sign in to comment.