From 6c54b8870c065a255eb85d8e0b4f70f887d88db3 Mon Sep 17 00:00:00 2001 From: veltza <106755522+veltza@users.noreply.github.com> Date: Sat, 16 Sep 2023 16:15:13 +0300 Subject: [PATCH] Fix sixel filler character (#1422) The sixel implementation uses the Braille pattern blank character (U+2800) as a filler character, which is problematic because U+2800 is not a proper Unicode whitespace character. This fix changes the filler character to a proper Unicode whitespace character U+2000. Quote from https://en.wikipedia.org/wiki/Whitespace_character: "The Braille Patterns Unicode block contains U+2800 BRAILLE PATTERN BLANK, a Braille pattern with no dots raised. Some fonts display the character as a fixed-width blank, however the Unicode standard explicitly states that it does not act as a space." --- sixel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sixel.go b/sixel.go index ee590ce9..326187fa 100644 --- a/sixel.go +++ b/sixel.go @@ -9,7 +9,7 @@ import ( const ( gSixelBegin = "\033P" - gSixelFiller = '\u2800' + gSixelFiller = '\u2000' ) type sixelScreen struct {