~nilium/goquote

e9de21dda3a53c58859ef868373512b878eddff2 — Noel Cower 4 years ago 9aa1d7b master v0.1.2
Fix missing newline in ql, qla output

Need to use SplitAfter, not Split, to retain the newlines.
1 files changed, 1 insertions(+), 1 deletions(-)

M goquote.go
M goquote.go => goquote.go +1 -1
@@ 97,7 97,7 @@ loop:
			quotefn = strconv.QuoteToASCII
			fallback = "qa"
		}
		lines := strings.Split(string(b), "\n")
		lines := strings.SplitAfter(string(b), "\n")
		if len(lines) <= 1 {
			mode = fallback
			goto loop