[DF-4762] Move line splitting function to TextBlock