Fix wrapping pages with outlines.
Merge pull request #25 from makovkastar/master

Fix wrapping pages with outlines.