Text files

“I always wanted to be somebody, but now I realize I should have been more specific.” — Lily Tomlin

Table of contents

  1. Insert final newline
  2. Trim trailing whitespace

Insert final newline

POSIX: Line

Always end a file with a newline character, a common practice in Unix systems.

Lorem ipsum.

Trim trailing whitespace

CommonMark: Hard line breaks

Never put trailing whitespace at the end of a line.

Lorem ipsum.↵