Lensk correction for multiline values.
Merged Biancini's code