We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 849d7eb commit 127b21cCopy full SHA for 127b21c
diffmatchpatch/diff.go
@@ -1152,10 +1152,14 @@ func (dmp *DiffMatchPatch) DiffPrettyText(diffs []Diff) string {
1152
switch diff.Type {
1153
case DiffInsert:
1154
_, _ = buff.WriteString("\x1b[32m")
1155
+ text = strings.ReplaceAll(text, " ", "█")
1156
+ text = strings.ReplaceAll(text, "\n", "⏎")
1157
_, _ = buff.WriteString(text)
1158
_, _ = buff.WriteString("\x1b[0m")
1159
case DiffDelete:
1160
_, _ = buff.WriteString("\x1b[31m")
1161
1162
1163
1164
1165
case DiffEqual:
0 commit comments