How to create single lines from a plain text field with line breaks Building on this question here: Create line breaks from text field

What approach would be best for breaking a multi line plain text field into multiple single lines to be used as:

&lt;span&gt;{{ textfield.lineOne }}&lt;/span&gt;
&lt;span&gt;{{ textfield.lineTwo }}&lt;/span&gt;
&lt;span&gt;{{ textfield.lineThree }}&lt;/span&gt;


At the moment, my approach is to use a Matrix for the user to be able to add individual lines, but I'd much rather I was able to present the client with a multiline text field and rework them in the template.
I've made a little macro for this:

{% macro splitText(text) %}
  {% set text = text|nl2br|raw %}
  {% set text = '&lt;span class="split_text"&gt;' ~ text|replace('&lt;br /&gt;', '&lt;/span&gt; &lt;span class="split_text"&gt;') ~ '&lt;/span&gt;' %}
  {{ text|raw }}
{% endmacro %}


You may need to tweak it a bit, but this is what worked for me.