model-writtenrun 1138 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Akshay Joshi reported that pgindent could truncate files lacking a trailing newline and proposed changing lexer EOF handling with a regression test in #1.
- Andrew Dunstan advocated ensuring a trailing newline in #2, supported by Tom Lane in #3 and Ashutosh Bapat in #4; Akshay revised the lexer to emit its synthetic final newline exactly once in #5.
- Tom replaced the lexer fix with a conditional newline append in the Perl wrapper in #6, citing the lexer’s complexity and rejecting the regression fixture because its deliberately missing newline could easily be inadvertently corrected.
- Andrew accepted the simpler wrapper fix in #7, and Tom confirmed the reviewability tradeoff in #8 before committing #6 unchanged as 79ac82125e.
- The fix had landed by the final message, where Bruce Momjian argued that future pg_bsd_indent changes would require clearer variable names and code cleanup in #9; no further patch was submitted.