Tweak error report pagination to be line-aware
At the moment, pagination in error reports is not line-aware, meaning, it will split a line in half if it has to, which results in weird to read reports.
This should be tweaked so that the pagination breaks earlier, on the previous line feed.