Add normalise method to line position, unit test.

This is used by the TextPane Canvas. Makes sense to pull the
behaviour out and test it.
Merge pull request #11 from csmith/lineposition

Add normalise method to line position, unit test.