Fix size calc when there is no trailing newline.