docs: fix type

This commit is contained in:
Ayman Bagabas
2022-06-15 17:43:37 -04:00
parent d5fb104a74
commit 24d1697645
+1 -1
View File
@@ -185,7 +185,7 @@ func WithWordWrap(wordWrap int) TermRendererOption {
}
}
// WithWordWrap sets a TermRenderer's word wrap.
// WithPreservedNewlines preserves newlines from being replaced.
func WithPreservedNewLines() TermRendererOption {
return func(tr *TermRenderer) error {
tr.ansiOptions.PreserveNewLines = true