aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui/rainbow.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/rainbow.go b/ui/rainbow.go
index fca3cba..8a564be 100644
--- a/ui/rainbow.go
+++ b/ui/rainbow.go
@@ -70,6 +70,7 @@ func (r *RainbowRenderer) RenderNode(w io.Writer, node *blackfriday.Node, enteri
runes := graphemes.Runes()
if len(runes) == 1 && unicode.IsSpace(runes[0]) {
buf.WriteRune(runes[0])
+ continue
}
_, _ = fmt.Fprintf(&buf, "<font color=\"%s\">%s</font>", r.ColorID, graphemes.Str())
}