@jztusk @jztusk Yes, you win the 🏆 for the first and correct answer.
And although it hadn't occurred to me, I actually think you're right that a positive lookahead assertion would work here in stead of the loop. I think I could have done:
$value =~ s/\n(?=[^ \t])/\n /g;
=> More informations about this toot | View the thread | More toots from jik@federate.social
=> View jztusk@mastodon.social profile
text/gemini
This content has been proxied by September (ba2dc).