[TASK] Move breakLinesForEmail and add some unit tests