diff --git a/modules/consent/templates/consentform.twig b/modules/consent/templates/consentform.twig
index 1889a84c6621f22fc8cca846ead289d81b725bcc..b1433046a9e07af6757ec0453c9b2c14c715f98b 100644
--- a/modules/consent/templates/consentform.twig
+++ b/modules/consent/templates/consentform.twig
@@ -19,12 +19,12 @@
     {% endif %}
 
     <input type="hidden" name="StateId" value="{{ stateId }}" />
-    <button type="submit" name="yes" class="btn" id="yesbutton"{%- if autofocus == 'yesbutton'%} autofocus{% endif %-}>{{ '{consent:consent:yes}'|trans }}</button>
+    <button type="submit" name="yes" class="btn" id="yesbutton"{%- if autofocus == 'yesbutton' %} autofocus{% endif -%}>{{ '{consent:consent:yes}'|trans }}</button>
 </form>
 
 <form id="consent_no" action="{{ noTarget }}">
     <input type="hidden" name="StateId" value="{{ stateId }}" />
-    <button type="submit" class="btn" name="no" id="nobutton"{%- if autofocus == 'nobutton'%} autofocus{% endif %-}>{{ '{consent:consent:no}'|trans }}</button>
+    <button type="submit" class="btn" name="no" id="nobutton"{%- if autofocus == 'nobutton' %} autofocus{% endif -%}>{{ '{consent:consent:no}'|trans }}</button>
 </form>
 
 {% if sppp != false %}