aboutsummaryrefslogtreecommitdiff
path: root/text.go
diff options
context:
space:
mode:
authoradnano <[email protected]>2020-09-29 10:16:55 -0400
committeradnano <[email protected]>2020-09-29 10:16:55 -0400
commit8facfabec5118f6024c41e2a233253054ce07972 (patch)
tree5dffdc98d1e8d640098d82c3a30e2a73157cfe4b /text.go
parentImplement parsing of Gemini text responses (diff)
downloadgo-gemini-8facfabec5118f6024c41e2a233253054ce07972.tar.xz
go-gemini-8facfabec5118f6024c41e2a233253054ce07972.zip
Add newlines after Gemini text lines
Diffstat (limited to 'text.go')
-rw-r--r--text.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/text.go b/text.go
index a7eefd7..3811169 100644
--- a/text.go
+++ b/text.go
@@ -114,6 +114,7 @@ func (t Text) String() string {
var b strings.Builder
for _, l := range t {
b.WriteString(l.String())
+ b.WriteByte('\n')
}
return b.String()
}