Flare automatically adds a list style to imported Word files

This forum is for all Flare issues related to importing files or projects.
Post Reply
bennetty
Propeller Head
Posts: 32
Joined: Tue Aug 19, 2014 8:28 am

Flare automatically adds a list style to imported Word files

Post by bennetty »

Hi,
I have imported some Word documents which have been set to use a stylesheet but NOT preserve the Word styles. These Word documents contains numbered and bulleted lists which I have not mapped to a Flare style.

When I look at the topic XML code in Flare I see the following:

<p>Here you can:</p>
<ul style="list-style-type: disc;margin-left: 36pt;">
<li style="list-style-type: disc;">Lorem Ipsum</li>
<li style="list-style-type: disc;">Lorem Ipsum</li>
<li style="list-style-type: disc;">Lorem Ipsum</li>
<li style="list-style-type: disc;">Lorem Ipsum</li>
<li style="list-style-type: disc;">Lorem Ipsum</li>
</ul>

The highlighted code has automatically been added by Flare and is overriding the margin-left set in my stylesheet. It adds this code to every occurance of an ordered or unordered list.

How can I prevent the highlighted code from being inserted into my topic files.

Many thanks
Nicola.
scox
Jr. Propeller Head
Posts: 1
Joined: Fri Jun 19, 2015 4:28 pm

Re: Flare automatically adds a list style to imported Word f

Post by scox »

I have a similar issue and I found a way to do it in a few steps. Basically, you can do a series of find and replaces.

---------------Find-----------------------/------------ Replace------
<ul style="list-style-type: disc;margin-left: 36pt;">/ <ul>
<li style="list-style-type: disc;">/ <li>

Be sure when you do this that you set it to look in the Source Code and that it looks in the Whole Project.

The blog post http://www.flareforhelp.com/2014/06/cle ... from-word/ does a great job explaining in more depth.
bennetty
Propeller Head
Posts: 32
Joined: Tue Aug 19, 2014 8:28 am

Re: Flare automatically adds a list style to imported Word f

Post by bennetty »

Thanks for the reply. Find and replace is the solution I came up with too, so I think we have both handled it in the best possible way.
Post Reply