Skip to content

Commit 9f760d8

Browse files
committed
chore(packages): Adjust autodoc code blocks to not explode manual
1 parent 6bad0e7 commit 9f760d8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/autodoc/init.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,15 +380,16 @@ function package:registerCommands ()
380380
SILE.call("verbatim:font")
381381
SILE.call("language", { main = "und" })
382382
-- Rather than absolutizing 4 different values, just do it once and cache it
383+
local bs = SILE.types.measurement("1bs"):absolute()
383384
local ex = SILE.types.measurement("1ex"):absolute()
384385
local pushline = function ()
385386
colorWrapper("note", function ()
386387
SILE.call("novbreak")
387-
SILE.typesetter:pushVglue(ex)
388+
SILE.typesetter:pushVglue(-bs)
388389
SILE.call("novbreak")
389390
SILE.call("fullrule", { thickness = "0.5pt" })
390391
SILE.call("novbreak")
391-
SILE.typesetter:pushVglue(-ex)
392+
SILE.typesetter:pushVglue(-bs-ex)
392393
SILE.call("novbreak")
393394
end)
394395
end

0 commit comments

Comments
 (0)