fix wrapping on release state
This commit is contained in:
parent
cc133e8969
commit
259163c737
@ -153,6 +153,11 @@ func wrapIndentRelease(first, rest []rune, firstWidth, restWidth int) func(wrapI
|
|||||||
state.currentLineLength+len(state.currentWord)+1+len(indent) > width {
|
state.currentLineLength+len(state.currentWord)+1+len(indent) > width {
|
||||||
ret = append(ret, '\n')
|
ret = append(ret, '\n')
|
||||||
state.currentLineLength = 0
|
state.currentLineLength = 0
|
||||||
|
state.multipleLines = true
|
||||||
|
}
|
||||||
|
|
||||||
|
if state.multipleLines {
|
||||||
|
indent = rest
|
||||||
}
|
}
|
||||||
|
|
||||||
if state.currentLineLength == 0 {
|
if state.currentLineLength == 0 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user