aboutsummaryrefslogtreecommitdiff
path: root/modules/external-open-lib.el
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
commit8a49c04d3941c8953418abacefd7ac192aa88e26 (patch)
tree7f6943d2fcfbfb66960948615ab3ff3357fdfc43 /modules/external-open-lib.el
parent63d56ad144f1b1ff6eeb8e0e6b272b88462fb4bd (diff)
downloaddotemacs-8a49c04d3941c8953418abacefd7ac192aa88e26.tar.gz
dotemacs-8a49c04d3941c8953418abacefd7ac192aa88e26.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 'modules/external-open-lib.el')
0 files changed, 0 insertions, 0 deletions