aboutsummaryrefslogtreecommitdiff
path: root/docs/specs/cache-helper-design-spec.org
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-07-11 14:29:03 -0500
committerCraig Jennings <c@cjennings.net>2026-07-11 14:29:03 -0500
commit016f322de184b09d79cb1d7db522a0aaa6c00a9f (patch)
treef3ca3d8607244a71953fd9616e53ed7445853094 /docs/specs/cache-helper-design-spec.org
parent1ba475cb0cf7076a284b13d808029309d13ea08c (diff)
downloaddotemacs-016f322de184b09d79cb1d7db522a0aaa6c00a9f.tar.gz
dotemacs-016f322de184b09d79cb1d7db522a0aaa6c00a9f.zip
fix(custom-ordering): preserve the trailing newline in reverse and number
cj/reverse-lines and cj/number-lines split the region on newlines without accounting for a trailing one, so it became a spurious empty element. Reversing "a\nb\n" floated that empty to the top ("\nb\na"), and numbering added a phantom final numbered line. Both now strip a trailing newline before splitting and reattach it after, matching cj/--arrayify, while preserving internal blank lines. Corrected the two tests that asserted the broken output.
Diffstat (limited to 'docs/specs/cache-helper-design-spec.org')
0 files changed, 0 insertions, 0 deletions