RaspberryPiFoundation / lesson_format

Lesson formatter
17 stars 28 forks source link

Remove excess padding in generated PDFs #99

Closed andylolz closed 5 months ago

andylolz commented 9 years ago

There’s lots of superfluous padding in generated PDFs, causing them to span even more pages than before.

Let’s get them down to at most the same number of pages as before.

codecleaner commented 9 years ago

Could you show me a PDF that does not have these paddings? I think it will be very helpful to fix it.

andylolz commented 9 years ago

Could you show me a PDF that does not have these paddings?

I’m not able to provide that, I’m afraid.

From glancing through, I think the main offender is the gap after a scratchblock in an activity list / before a test block, e.g.

screen shot 2014-10-13 at 14 23 34

Apart from that, there are a few similar examples that could perhaps be reduced slightly. But this is the main one.

andylolz commented 9 years ago

Closing – thanks @codecleaner!

andylolz commented 9 years ago

Going to reopen this one. @codecleaner’s fix sorted out some of the whitespace, but I think there are other places that could also do with tightening up.