DRYing line()

Removing duplication of logic. Switching line() from directly outputting to the PDF to calling lines().
Merge pull request #210 from bgribaudo/patch-3

Removing duplication of logic in line().