Right-align route-D paragraphs and preview flushright blocks
This commit is contained in:
1 parent
6714591704
commit
40ed26e339
5 files changed
+43
-2
No files matched your search
@@ -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
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user