I am working with a group of span
elements within a td
that has a set width.
My goal is to wrap the span elements onto new lines without breaking up the text inside them.
For example, if I have:
<td>
<span>bind</span>
<span>defaults</span>
<span>nofail</span>
<span>x-systemd.requires=zfs-mount.service</span>
<span>bind</span>
<span>defaults</span>
<span>nofail</span>
<span>x-systemd.requires=zfs-mount.service</span>
</td>
I would like each span
element to move to a new line as needed, but maintain the integrity of the actual content inside them.
What is the best approach to achieve this desired outcome?