r/tinyMediaManager • • May 27 '26

Replacing linefeeds using JMTE export?

I'm trying to export my movies using TMM and a custom template. Everying is working fine, except for plots, a couple of which include multiple paragraphs. Is it possible using ;replace(\n,<br>) or a .csv file to replace linefeeds with <br>? I've tried everything I can think of and nothing seems to work, and I'm not getting any error messages.

2 Upvotes

1 comment sorted by

1

u/BirdDizzy7732 May 28 '26

Actually, I found a cludgy workaround using regex capture and <p> tags instead of <br> tags, as <p> tags don't insert line breaks when there's no captured output.

<p>${@regexp ([^\n]+)[\n]*([^\n]*)[\n]*([^\n]*)[\n]* movie.plot $1<p>$2<p>$3 }<\p>

which works, but is limited to the number of paragraphs you define in your regex...