Correct enter handling at end of heading