perf(tables): remove cosmetic padding from markdown tables

Drop column-width padding from table output. Saves ~37% bytes on
table-heavy PDFs. Markdown renders identically — padding was purely
cosmetic. Optimizes token efficiency for AI agent consumers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Abimael Martell
2026-03-12 11:19:30 -07:00
co-authored by Claude Opus 4.6
parent ba1fbcbff6
commit 80a3b81ff9
7 changed files with 409 additions and 421 deletions
+5 -5
View File
@@ -359,9 +359,9 @@ mod tests {
};
let md = table_to_markdown(&table);
assert!(md.contains("| Header 1"));
assert!(md.contains("| ---"));
assert!(md.contains("| Cell 1"));
assert!(md.contains("|Header 1|"));
assert!(md.contains("|---|"));
assert!(md.contains("|Cell 1|"));
}
#[test]
@@ -721,12 +721,12 @@ mod tests {
let md = table_to_markdown(&table);
// JAN and FEB should be on their own rows, not merged into adjacent rows
assert!(
md.contains("| JAN"),
md.contains("|JAN|"),
"JAN should be on its own row, got:\n{}",
md
);
assert!(
md.contains("| FEB"),
md.contains("|FEB|"),
"FEB should be on its own row, got:\n{}",
md
);