diff --git a/templates/content/node--ubc-profile--sidebar-content.html.twig b/templates/content/node--ubc-profile--sidebar-content.html.twig index 6d33343..d95cb73 100644 --- a/templates/content/node--ubc-profile--sidebar-content.html.twig +++ b/templates/content/node--ubc-profile--sidebar-content.html.twig @@ -89,7 +89,7 @@
{% if not (node.field_profile_name_prefix.isEmpty == true) and content.field_profile_name_prefix is defined %}{{ content.field_profile_name_prefix.0 }}{{ ' ' }} {% endif %} - {% spaceless %}{{ label }}{% endspaceless %}{% if not (node.field_profile_name_suffix.isEmpty == true) and content.field_profile_name_suffix is defined %}{{- ', ' -}}{{- content.field_profile_name_suffix.0 -}} + {% apply spaceless %}{{ label }}{% endapply %}{% if not (node.field_profile_name_suffix.isEmpty == true) and content.field_profile_name_suffix is defined %}{{- ', ' -}}{{- content.field_profile_name_suffix.0 -}} {% endif %}
{% if not (node.field_profile_pronouns.isEmpty == true) and content.field_profile_pronouns is defined %}