HomeFreeBSD

diff: Fix --expand-tabs and --side-by-side.

Description

diff: Fix --expand-tabs and --side-by-side.

  • Overhaul column width and padding calculation.
  • Rewrite print_space() so it is now a) correct and b) understandable.
  • Rewrite tab expansion in fetch() for the same reason.

This brings us in line with GNU diff for all cases I could think of.

Sponsored by: Klara, Inc.
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D44014

Details

Provenance
desAuthored on Feb 26 2024, 6:08 PM
Reviewer
imp
Differential Revision
D44014: diff: Fix --expand-tabs and --side-by-side.
Parents
rG6b9e6f12e5bb: pam: Always use pam_xdg for session and xdm
Branches
Unknown
Tags
Unknown