aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-12 06:17:11 -0500
committerCraig Jennings <c@cjennings.net>2026-05-12 06:17:11 -0500
commit12c11f136538af9fa93bb59b0aa96539a478c2fb (patch)
tree58fc32c7a768d14574650c4bc524c25bc0e6fe67 /tests
parent0baf4d17d6ea04d64d75dc7d7d3f22e78070f8b8 (diff)
downloaddotemacs-12c11f136538af9fa93bb59b0aa96539a478c2fb.tar.gz
dotemacs-12c11f136538af9fa93bb59b0aa96539a478c2fb.zip
feat(nov): default the EPUB text column to 80% of the window
`6800d50' had set `cj/nov-margin-percent' to 12 (~76% text); 10 gives a round 80%. Adjust per-buffer with the `+'/`-' keys; clamp is unchanged (0..25, i.e. 50%..100%).
Diffstat (limited to 'tests')
-rw-r--r--tests/test-calibredb-epub-config.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-calibredb-epub-config.el b/tests/test-calibredb-epub-config.el
index 88c4452f5..e12abdaa6 100644
--- a/tests/test-calibredb-epub-config.el
+++ b/tests/test-calibredb-epub-config.el
@@ -47,9 +47,9 @@ below 50% of the usable columns."
(cj/nov-min-text-width 40))
(should (= 40 (cj/nov--text-width 50)))))
-(ert-deftest test-calibredb-epub-nov-default-margin-gives-roughly-three-quarter-text ()
- "Normal: the default `cj/nov-margin-percent' leaves ~3/4 of the window for text."
- (should (= 76 (cj/nov--text-width 100))))
+(ert-deftest test-calibredb-epub-nov-default-margin-gives-80-percent-text ()
+ "Normal: the default `cj/nov-margin-percent' leaves 80% of the window for text."
+ (should (= 80 (cj/nov--text-width 100))))
;;; ----------------------- cj/nov--text-width-for-window ----------------------