diff options
author | Septs <[email protected]> | 2022-12-21 10:24:13 +0800 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-12-21 11:21:07 +0100 |
commit | 5d5f0a2371a38da2e328cb705f54c1952a736164 (patch) | |
tree | ae92824c25c3a77534f2f8047cf95a02f4edab4d | |
parent | d20d2651ea945bc5c0237cc8f8db9e4c16165b5a (diff) | |
download | hugo-5d5f0a2371a38da2e328cb705f54c1952a736164.tar.gz hugo-5d5f0a2371a38da2e328cb705f54c1952a736164.zip |
tocss: Fix unquote case with double quotes
See #10555
-rw-r--r-- | resources/resource_transformers/tocss/internal/sass/helpers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/resource_transformers/tocss/internal/sass/helpers.go b/resources/resource_transformers/tocss/internal/sass/helpers.go index 8128fd4d7..ae1de7daa 100644 --- a/resources/resource_transformers/tocss/internal/sass/helpers.go +++ b/resources/resource_transformers/tocss/internal/sass/helpers.go @@ -38,7 +38,7 @@ func CreateVarsStyleSheet(vars map[string]string) string { // These variables can be a combination of Sass identifiers (e.g. sans-serif), which // should not be quoted, and URLs et, which should be quoted. // unquote() is knowing what to do with each. - varsSlice = append(varsSlice, fmt.Sprintf("%s%s: unquote('%s');", prefix, k, v)) + varsSlice = append(varsSlice, fmt.Sprintf("%s%s: unquote(%q);", prefix, k, v)) } sort.Strings(varsSlice) varsStylesheet = strings.Join(varsSlice, "\n") |