Adjust final lgt header only if input isn't empt