Keep line breaks in thing's text field

Is there some markdown or BBcode I can use to maintain line breaks in the text fields in the database?

I’m trying to store the body of an email on many different rewards users can earn. When they earn a reward I want to send a confirmation email specific to that reward (instead of building a different action for each email and then try to match up each action to each reward).

I can use dynamic data to insert the body of the email and most of the markdown works (bold, italics, centered, font).

What doesn’t work is that all of the line breaks are removed. So the email body just runs together in one long line.

I tried [br][/br] and [new_line] and [line_break] but they didn’t work.

[br] [/br]

maybe?

Thanks, but that didn’t work either

Well that’s weird. I added [li][/li] around sentences to turn them into “list items” and it did turn them into an indented list, but it also did a bunch of other random stuff.

Okay, so, everything is purple…? For some reason?

[size=3][font=Arial] 
[li]Thanks for putting away your phone and focusing on the LAJFF Opening Night film!! [/li]
[li] Pick u your (1) FREE ticket to another LAJFF screening from the lilspace attendant in the lobby. Please note: This ticket is [b]NOT VALID ON CLOSING NIGHT.[/b] You will need to bring the (paper) ticket to whatever screening you choose to attend.[/li]
[li]  Remember to arrive early. Seating is not assigned and this ticket does NOT guarantee admission if the screening is sold out. [/li]
[li]  Thanks again for using lilspace! [b][i]Putting away your phone is rewarding![/i][/b]  If you have any questions, please email [[email protected]]
[email protected][/email][/li]
[/font][/size][/center]

Does [p][/p] work?

Nevermind, I just tried. I am guessing Bubble has custom BBCode implemented and/or removed the [br] functionality. Have you tried using a multiline input instead of rich text? (to see if you can still see line breaks)

As annoying as it might be, one solution is to save the different paragraphs as separate database things and then string them together in the ‘body’ forcing line breaks there instead.

ie:

Confirmation Email Dynamic Sentence 1 here

Confirmation Email Dynamic Sentence 2 goes next

etc

1 Like

Regarding linebreak on bbcode,
try to use like below,
[table]
[tr][td]Sample Text message -next1 break[/td][/tr]
[tr][td] [/td][/tr]
[tr][td]Test content - next 3 break[/td][/tr]
[tr][td] [/td][/tr]
[tr][td] [/td][/tr]
[tr][td] [/td][/tr]
[tr][td]Refer website[/td][/tr]
[/table]

Im also run out of this issue with Br tag, so i found alternative solution.

7 Likes

thank you @testingwebdev2016 . this worked for me.