Removing duplication of logic in line().

Switching line() from directly outputting to the PDF to calling lines().