aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-13 06:27:38 -0500
committerCraig Jennings <c@cjennings.net>2026-05-13 06:27:38 -0500
commit421f4973dafae3e80b8bd9d953a6b7ebcae9b2cf (patch)
tree7ae98bd4991be263b042a354773b13810b53e59b /tests
parentb7d523163b97758822d8e1b198495053121e05e1 (diff)
downloaddotemacs-421f4973dafae3e80b8bd9d953a6b7ebcae9b2cf.tar.gz
dotemacs-421f4973dafae3e80b8bd9d953a6b7ebcae9b2cf.zip
refactor(calibredb-epub): extract the nov image-padding helper
I pulled the image-centering math out of `cj/nov-center-images` into `cj/--nov-image-padding-cols`. The wrapper still loops over the image text properties and writes the line/wrap-prefix. The helper takes col-width, img-px, and font-width-px and returns the left padding. With the math in a pure helper I can unit-test the centering rule directly instead of building a buffer with image-display properties.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions