Reserve outer tabcolsep margins around tables

This commit is contained in:
gloamxun committed 2026-10-26 20:29:51 +08:00
1 parent 20d23ce68d
commit aa072f58d8
5 files changed
+52 -12

No files matched your search

+4 -2
View File
@@ -480,8 +480,10 @@ impl Halign {
let rule_width = 26_214; // 0.4pt in scaled points.
for boundary in &self.vertical_rules {
let x = match *boundary {
0 => 0,
index if index >= self.column_widths.len() => (self.width - rule_width).max(0),
0 => self.margin,
index if index >= self.column_widths.len() => {
(self.width - self.margin - rule_width).max(0)
}
index => {
let left = self.column_offset(index - 1) + self.column_widths[index - 1];
let right = self.column_offset(index);