aboutsummaryrefslogtreecommitdiff
path: root/ui/messages/tstring
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-04-14 11:44:07 +0300
committerTulir Asokan <tulir@maunium.net>2018-04-14 11:44:09 +0300
commit782ba0657a0bddc6ccb31b1792f3fbf4500a0087 (patch)
treed5e9e45144cb96dc0b851ca8758a6cde2779a800 /ui/messages/tstring
parente7bf5bd59fc0a43172b6ab5b338e1d60bd4b3bbb (diff)
Make HTML rendering more advanced
Also add Python-like HTML parser thing in lib/htmlparser
Diffstat (limited to 'ui/messages/tstring')
-rw-r--r--ui/messages/tstring/string.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/messages/tstring/string.go b/ui/messages/tstring/string.go
index d1ad446..a87d16a 100644
--- a/ui/messages/tstring/string.go
+++ b/ui/messages/tstring/string.go
@@ -25,6 +25,10 @@ import (
type TString []Cell
+func NewBlankTString() TString {
+ return make([]Cell, 0)
+}
+
func NewTString(str string) TString {
newStr := make([]Cell, len(str))
for i, char := range str {