Commit 7b6af4a2 authored by Mitar's avatar Mitar
Browse files

Without extra newline.

parent fb5b069d
Pipeline #462760776 failed with stages
in 1 minute and 38 seconds
......@@ -29,5 +29,9 @@ func MarshalWithoutEscapeHTML(v interface{}) ([]byte, errors.E) {
if err != nil {
return nil, errors.WithStack(err)
}
return buf.Bytes(), nil
b := buf.Bytes()
if len(b) > 0 {
return b[:len(b)-1], nil
}
return b, nil
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment