diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-13 06:27:38 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-13 06:27:38 -0500 |
| commit | 9487ffef982ad0f9fb9e0e1930b3c5d82a50085f (patch) | |
| tree | 2266a5ba49f2943fe6c1eab501019af0fcfecb05 /modules/prog-webdev.el | |
| parent | 7f0b6197eb6f2dcc97400c0a9a4097d6e25e6539 (diff) | |
| download | dotemacs-9487ffef982ad0f9fb9e0e1930b3c5d82a50085f.tar.gz dotemacs-9487ffef982ad0f9fb9e0e1930b3c5d82a50085f.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/prog-webdev.el')
0 files changed, 0 insertions, 0 deletions
