From 6eb9a2e492e53e87493c6ef744c6583f3a7797a7 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Mon, 15 Nov 2021 13:08:01 +0100 Subject: [PATCH] fix(image): remove braille blank before export --- src/image.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/image.go b/src/image.go index f9cc23a6..7a948d17 100644 --- a/src/image.go +++ b/src/image.go @@ -265,6 +265,7 @@ func (ir *ImageRenderer) cleanContent() { ir.ansiString = strings.ReplaceAll(ir.ansiString, "\x1b[K", "") ir.ansiString = strings.ReplaceAll(ir.ansiString, "\x1b[1F", "") ir.ansiString = strings.ReplaceAll(ir.ansiString, "\x1b8", "") + ir.ansiString = strings.ReplaceAll(ir.ansiString, "\u2800", " ") // replace rprompt with adding and mark right aligned blocks with a pointer ir.ansiString = strings.ReplaceAll(ir.ansiString, rPromptAnsi, fmt.Sprintf("_%s", strings.Repeat(" ", ir.cursorPadding))) ir.ansiString = strings.ReplaceAll(ir.ansiString, "\x1b[1000C", strings.Repeat(" ", ir.rPromptOffset))