I need help with the function exporting multi-line content (e.g. lyrics) to a text file. As a test content I used:
Vestibulum tincidunt varius tortor, laoreet elementum lorem iaculis eget.
Aenean eleifend tortor vitae dolor blandit laoreet.
Etiam vel pellentesque enim.
Aenean eleifend.
I tried $regexp(%lyrics%,'(.{1,55})(\s|$)','** $1 **\n')
But the output was:
** Vestibulum tincidunt varius tortor, laoreet elementum **
** lorem iaculis eget.
Aenean eleifend tortor vitae **
** dolor blandit laoreet.
Etiam vel pellentesque enim. **
**
Aenean eleifend. **
It looks like a problem with handling empty lines.