From 66d5d2ebec340297f9fa8e72328f564f804cf25e Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 16 May 2015 17:12:06 +0200 Subject: Add TAB --- text.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/text.go b/text.go index 7b25e7f..7ef1570 100644 --- a/text.go +++ b/text.go @@ -42,6 +42,8 @@ func (f Font) Print(c *bufio.Writer, s string, off Point) Point { p.Line(c) } off.Y += gl.W + } else if ch == '\t' { + off.Y += f[' '].W * 8 } } return off -- cgit v1.2.3