How to turn line breaks into double line breaks?

Created on 4 August 2021, over 3 years ago
Updated 14 March 2024, 8 months ago

I'm trying to turn a plaintext list of items into separate paragraphs. As it stands, without using a tamper plugin, the items have a single line break between them and using the "Convert line breaks into HTML" text filter they at least display with a line break between them. However, we'd like to have paragraphs instead of line breaks. We can achieve this by adding an extra line break between the lines, but so far I've not been able to achieve this using the tamper plugins.

I tried using the "Find replace REGEX" plugin, using the find string "/\n/" and the replacement "\n\n" but that just replaced line breaks with the literal string "\n\n". I then tried escaping the slashes, so using "\\n\\n", but that didn't work either.

Any recommendations? Thank you.

πŸ’¬ Support request
Status

Active

Version

2.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024