Skip to content

Commit 02d5a6f

Browse files
committed
Fix offset calculation if no indentation and make update tests fixtures
1 parent 45fe48f commit 02d5a6f

File tree

5 files changed

+2
-1
lines changed

5 files changed

+2
-1
lines changed

algorithmic.typ

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@
5858
let colspans = indent-list.map(i => max-indent + 1 - i)
5959
let indent-content = indent-list.map(i => ([], table.vline(stroke: vstroke), []) * int(i / 2))
6060
let indents = (indent,) * max-indent
61-
let columns = (18pt, ..indents, 100% - 18pt - indents.sum())
61+
let offset = 18pt + if indents.len() != 0 { indents.sum() }
62+
let columns = (18pt, ..indents, 100% - offset)
6263

6364
while line-number <= content.len() {
6465
table-bits.push([#line-number:])

tests/function/ref/1.png

1.02 KB
Loading

tests/linecomment/ref/1.png

-14 Bytes
Loading

tests/linecommentspacing/ref/1.png

-2.57 MB
Loading

tests/procedure/ref/1.png

1.14 KB
Loading

0 commit comments

Comments
 (0)