RESOLVED: Tables in snippets not working with Bootstrap

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
tagalong
Propeller Head
Posts: 17
Joined: Thu Nov 07, 2019 12:25 pm

RESOLVED: Tables in snippets not working with Bootstrap

Post by tagalong »

In a new Flare 2022 project I am working on, I am finding that snippets will strip tables of their table coding, leaving only data. The exact same table works if it's inline within the topic, but not imported through a snippet. I am using Bootstrap 5. Are others seeing this? I will submit a bug report.
Last edited by tagalong on Tue May 30, 2023 10:35 am, edited 1 time in total.
Nita Beck
Senior Propellus Maximus
Posts: 3667
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Tables in snippets not working with Bootstrap

Post by Nita Beck »

Sounds to me like you've inserted the snippet as snippetText )meaning that it's "inline" in some other tag, such as a <p>) rather than snippetBlock. When a snippet is inserted in a tag that already has some other content in it, Flare will definitely remove the formatting within the snippet so that it inherits its formatting from the tag it's in. But if inserted as a snippet block, the snippet will keep its internal formatting. (To insert as a snippet block, create an empty paragraph and insert the snippet there.)

Look at the code under the hood. Do you see snippetText rather than snippetBlock?
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
tagalong
Propeller Head
Posts: 17
Joined: Thu Nov 07, 2019 12:25 pm

Re: Tables in snippets not working with Bootstrap

Post by tagalong »

That was it! Thank you for the reply.
Post Reply