Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> Yeah. I wonder if we shouldn't be just ensuring that there is a line
> feed at the end of the buffer, i.e. add one if it's not there. We
> shouldn't be adding files without a trailing LF, and ensuring there is
> one seems like a reasonable thing to do in pg_bsd_indent.
+1
regards, tom lane