Import from Word has additional <p> tags

This forum is for all Flare issues related to importing files or projects.
Post Reply
JennT
Jr. Propeller Head
Posts: 7
Joined: Thu Sep 05, 2024 11:10 am

Import from Word has additional <p> tags

Post by JennT »

When I do an import from a (well-formatted) Word file, I consistently get extra class attributes and a paragraph tag inside my lists and table styles. I would prefer not to have these, to keep things clean.

For example, when I import a list this how each entry is formatted:

Code: Select all

<li class="li">
     <p class="li"> The list info. </p>
</li>
I was hoping to have something like this:

Code: Select all

<li>The list info.</li>
Does anyone know how to remove this type of formatting? I would prefer not to use a post-process script if possible...
Thanks!
AlexFox
Sr. Propeller Head
Posts: 265
Joined: Thu Oct 19, 2017 1:56 am

Re: Import from Word has additional <p> tags

Post by AlexFox »

You could use a regex find/replace:

Find:

Code: Select all

\s+<p class="li">(.*)</p>
Replace:

Code: Select all

\1
Psider
Propellus Maximus
Posts: 902
Joined: Wed Jul 06, 2011 1:32 am

Re: Import from Word has additional <p> tags

Post by Psider »

I make sure I tick the "Use standard list style type" checkbox in the Advanced Options tab. That seems to help with clean lists.

Also, I make sure I select the Flare style in the "Map to" dropdown in the Styles. It's easy to miss, but the top half is Flare and the bottom half is Word and they are two different things.
Post Reply