Skip to content

Commit

Permalink
fix(nodes): Fix pushHbox() regression, recognize zerohoxes (#789)
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque authored Jan 23, 2020
1 parent 99ec746 commit dae51f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/typesetter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down

0 comments on commit dae51f1

Please sign in to comment.