mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-23 18:14:04 -08:00
fix(image): remove braille blank before export
This commit is contained in:
parent
d0b2671d80
commit
6eb9a2e492
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue