Fix bug #14842 with doc strings of next-line and previous-line.