Browse Source

feat(shortcodes): trim whitespace in id attributes

applies to textinput and textarea
Josh Habdas 1 year ago
parent
commit
523b2a148b
Signed by: Josh Habdas <jhabdas@protonmail.com> GPG Key ID: B148B31154C75A74
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      layouts/partials/components/common/textattrs.html

+ 1
- 1
layouts/partials/components/common/textattrs.html View File

@@ -12,7 +12,7 @@
12 12
         {{ end }}
13 13
       {{ else }}
14 14
         {{ if eq $name "id" }}
15
-          {{ $name }}="{{ $value | urlize }}"
15
+          {{ $name }}="{{- $value | urlize -}}"
16 16
         {{ else }}
17 17
           {{ $name }}="{{ $value }}"
18 18
         {{ end }}

Loading…
Cancel
Save