Skip to content

Commit

Permalink
fix(packages): Avoid mix-and-matching indents in fixed-width specimin…
Browse files Browse the repository at this point in the history
… blocks
  • Loading branch information
alerque committed Aug 19, 2023
1 parent 7b7fc75 commit de41cac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/specimen/init.lua
Expand Up @@ -49,6 +49,7 @@ function package:registerCommands ()
local w = 0
for j= 1,#tokens do w = w + tokens[j].width end
local ratio = width.length / w
SILE.call("noindent")
SILE.call("font", {size = fontOptions.size * ratio}, function()
SILE.process({line.string})
SILE.call("par")
Expand Down

0 comments on commit de41cac

Please sign in to comment.