resolves #1065 ensure space before callout on last line of listing

- ensure space is present before callout on final line of listing
- restore callouts to correct location when using Pygments with linenums
Merge pull request #1100 from mojavelinux/issue-1065

resolves #1065 ensure space before callout on last line of listing