From eb1674743557c7b133677099f80a37f4ce2913ee Mon Sep 17 00:00:00 2001 From: Hamcha Date: Fri, 21 Apr 2017 10:21:25 +0200 Subject: [PATCH] unsplash: Replace whitespace with whitespace --- mods/unsplash.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mods/unsplash.go b/mods/unsplash.go index 1ba99ca..d2436e6 100644 --- a/mods/unsplash.go +++ b/mods/unsplash.go @@ -42,6 +42,9 @@ func initunsplash() { } func stripUnreadable(r rune) rune { + if r == '\n' || r == '\t' { + return ' ' + } if r < 32 || r >= 0x1f000 { return -1 }