aboutsummaryrefslogtreecommitdiff
path: root/modules/cj-window-geometry-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
commit00b3997ebaa22dffe0db04688bf0b1fcf3d74bf2 (patch)
tree2266a5ba49f2943fe6c1eab501019af0fcfecb05 /modules/cj-window-geometry-lib.el
parent482596ba9d82ad6478a756935552b23b34083954 (diff)
downloaddotemacs-00b3997ebaa22dffe0db04688bf0b1fcf3d74bf2.tar.gz
dotemacs-00b3997ebaa22dffe0db04688bf0b1fcf3d74bf2.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/cj-window-geometry-lib.el')
0 files changed, 0 insertions, 0 deletions