Skip to content

Commit

Permalink
chore(typesetter): Only output overfull warning if outputQueue isn't …
Browse files Browse the repository at this point in the history
…empty (#1256)
  • Loading branch information
alerque authored Oct 1, 2021
1 parent 84507a5 commit 0cbb166
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/typesetter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,10 @@ SILE.defaultTypesetter = std.object {
if (self.frame.next and not (self.state.lastPenalty <= supereject_penalty )) then
self:initFrame(SILE.getFrame(self.frame.next))
elseif not self.frame:isMainContentFrame() then
SU.warn("Overfull content for frame "..self.frame.id)
self:chuck()
if #self.state.outputQueue > 0 then
SU.warn("Overfull content for frame "..self.frame.id)
self:chuck()
end
else
self:runHooks("pageend")
SILE.documentState.documentClass:endPage()
Expand Down

0 comments on commit 0cbb166

Please sign in to comment.