Remove trailing whitespace.
Add next and previous links.