Skip to content
Permalink
Browse files

fix(nodes): Fix pushHbox() regression, recognize zerohoxes (#789)

  • Loading branch information
alerque committed Jan 23, 2020
1 parent 99ec746 commit dae51f1d8d993647220a61dbdde59caa670d10ba
Showing with 2 additions and 1 deletion.
  1. +2 −1 core/typesetter.lua
@@ -168,7 +168,8 @@ SILE.defaultTypesetter = std.object {

pushHbox = function (self, spec)
-- if SU.type(spec) ~= "table" then SU.warn("Please use pushHorizontal() to pass a premade node instead of a spec") end
local node = SU.type(spec) == "hbox" and spec or SILE.nodefactory.hbox(spec)
local ntype = SU.type(spec)
local node = (ntype == "hbox" or ntype == "zerohbox") and spec or SILE.nodefactory.hbox(spec)
return self:pushHorizontal(node)
end,

0 comments on commit dae51f1

Please sign in to comment.
You can’t perform that action at this time.