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 | 8a49c04d3941c8953418abacefd7ac192aa88e26 (patch) | |
| tree | 7f6943d2fcfbfb66960948615ab3ff3357fdfc43 /modules/custom-buffer-file.el | |
| parent | 63d56ad144f1b1ff6eeb8e0e6b272b88462fb4bd (diff) | |
| download | dotemacs-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/custom-buffer-file.el')
0 files changed, 0 insertions, 0 deletions
