mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
9b0050e9aa
git-subtree-dir: docs git-subtree-split: 5c085a37b297bf12f59efeaae591418ec025c10d
936 B
936 B
title | description | categories | keywords | action | aliases | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
strings.ContainsNonSpace | Reports whether the given string contains any non-space characters as defined by Unicode’s White Space property. |
|
|
{{< new-in 0.111.0 >}}
{{ strings.ContainsNonSpace "\n" }} → false
{{ strings.ContainsNonSpace " " }} → false
{{ strings.ContainsNonSpace "\n abc" }} → true
Common white space characters include:
'\t', '\n', '\v', '\f', '\r', ' '
See the Unicode Character Database for a complete list.