unsplash: Replace whitespace with whitespace

This commit is contained in:
Hamcha 2017-04-21 10:21:25 +02:00
parent 0919398edc
commit eb16747435
1 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,9 @@ func initunsplash() {
}
func stripUnreadable(r rune) rune {
if r == '\n' || r == '\t' {
return ' '
}
if r < 32 || r >= 0x1f000 {
return -1
}