Right-align route-D paragraphs and preview flushright blocks

This commit is contained in:
gloamxun committed 2026-10-20 22:23:47 +08:00
1 parent 6714591704
commit 40ed26e339
5 files changed
+43 -2

No files matched your search

+2
View File
@@ -389,6 +389,8 @@ impl Page {
.sum();
let mut x = if paragraph.centered {
paragraph.left_skip + ((paragraph.width - natural) / 2).max(0)
} else if paragraph.right_aligned {
paragraph.left_skip + (paragraph.width - natural).max(0)
} else {
paragraph.left_skip
};