Skip to content

Commit

Permalink
chore(typesetter): Be less aggresize about running chuck() if not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Oct 1, 2021
1 parent 0cbb166 commit f1e5ee8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/typesetter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -459,11 +459,11 @@ SILE.defaultTypesetter = std.object {
end
if (self.frame.next and not (self.state.lastPenalty <= supereject_penalty )) then
self:initFrame(SILE.getFrame(self.frame.next))
elseif #self.state.outputQueue == 0 then
self:leaveHmode(true)
elseif not self.frame:isMainContentFrame() then
if #self.state.outputQueue > 0 then
SU.warn("Overfull content for frame "..self.frame.id)
self:chuck()
end
SU.warn("Overfull content for frame "..self.frame.id)
self:chuck()
else
self:runHooks("pageend")
SILE.documentState.documentClass:endPage()
Expand Down

0 comments on commit f1e5ee8

Please sign in to comment.