summaryrefslogtreecommitdiff
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
commita941e543200144338faf217cb2d5469a4e0ece4a (patch)
tree7f6943d2fcfbfb66960948615ab3ff3357fdfc43 /tests
parent0f2a9e6b7208a14761935cea462c13288a2751b3 (diff)
downloaddotemacs-a941e543200144338faf217cb2d5469a4e0ece4a.tar.gz
dotemacs-a941e543200144338faf217cb2d5469a4e0ece4a.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