Correctly handle empty lines of context