Skip to content

Commit

Permalink
Revert "chore(packages): Adjust autodoc code blocks to not explode ma…
Browse files Browse the repository at this point in the history
…nual"

This reverts commit 9f760d8.
  • Loading branch information
alerque committed Nov 25, 2024
1 parent 8ea6d8f commit 3a9181a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/autodoc/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -380,16 +380,15 @@ function package:registerCommands ()
SILE.call("verbatim:font")
SILE.call("language", { main = "und" })
-- Rather than absolutizing 4 different values, just do it once and cache it
local bs = SILE.types.measurement("1bs"):absolute()
local ex = SILE.types.measurement("1ex"):absolute()
local pushline = function ()
colorWrapper("note", function ()
SILE.call("novbreak")
SILE.typesetter:pushVglue(-bs)
SILE.typesetter:pushVglue(ex)
SILE.call("novbreak")
SILE.call("fullrule", { thickness = "0.5pt" })
SILE.call("novbreak")
SILE.typesetter:pushVglue(-bs - ex)
SILE.typesetter:pushVglue(-ex)
SILE.call("novbreak")
end)
end
Expand Down

0 comments on commit 3a9181a

Please sign in to comment.