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.