From 259163c73757892830e95595d9b8f9db98d49b1a Mon Sep 17 00:00:00 2001 From: Arpad Ryszka Date: Sat, 1 Nov 2025 23:07:37 +0100 Subject: [PATCH] fix wrapping on release state --- indent.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/indent.go b/indent.go index 6a677de..20a081a 100644 --- a/indent.go +++ b/indent.go @@ -153,6 +153,11 @@ func wrapIndentRelease(first, rest []rune, firstWidth, restWidth int) func(wrapI state.currentLineLength+len(state.currentWord)+1+len(indent) > width { ret = append(ret, '\n') state.currentLineLength = 0 + state.multipleLines = true + } + + if state.multipleLines { + indent = rest } if state.currentLineLength == 0 {