Correction for the calculation of textarea lines