Fix issue when ignored lines are not used to detect maximum amount of newlines