The bash double-quoted BODY="...\n..." assignment never interpreted \n as a newline, so Gitea rendered the literal backslash-n text instead of a line break (visible on the 2.1.3 release). Build it with printf instead, which does expand \n.
The bash double-quoted BODY="...\n..." assignment never interpreted \n as a newline, so Gitea rendered the literal backslash-n text instead of a line break (visible on the 2.1.3 release). Build it with printf instead, which does expand \n.