Fix minor navigation bugs.  Prev and next act now properly handle directives and empty lines