Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

hemtt utils fnl

Insert a final newline into files if missing

Usage: fnl

Options:
  -h, --help  Print help (see more with '--help')

Description

Insert a final newline into files if missing

Why Final Newlines Matter

Many tools and standards (POSIX) expect text files to end with a newline character. Missing final newlines can cause: - Git diff warnings - Issues with some text processing tools - Inconsistent behavior across different editors

This utility: - Scans text files (sqf, hpp, cpp, txt, etc.) - Adds a final newline if missing - Reports how many files were modified

Recommended to run before committing code to ensure consistency.