flyingsaucerproject/flyingsaucer — pull request #46 by micahhainline (2014-04-24 19:01:13+00:00)
Title: Fixed sequential floating blocks that were trying to avoid page breaks inside

Fixed an issue in which floating boxes that were told to avoid page breaks inside were not avoiding page breaks when they directly followed another floating element.

It looked like there was some code that was trying to deal with re-laying out floating boxes that had been forced to move, and another piece that was trying to revert page breaks in the case that the block was told to avoid page breaks inside but was too long to fit on a single page. The two pieces of code were interfering with each other, and causing the bug.