Code Samples - Maintaining Spaces WITHIN code

This forum is for all Flare issues not related to any of the other categories.
Post Reply
rdlittle
Jr. Propeller Head
Posts: 1
Joined: Wed Apr 16, 2008 10:08 am

Code Samples - Maintaining Spaces WITHIN code

Post by rdlittle »

I have a project in Flare where code samples need to be placed in various locations. There are hundreds of these rather small samples to place.

Currently, the samples themselves live in one big Word document. The code samples must be moved into their relevant context within the larger project being written in Flare. The samples in Word contain many instances of non-breaking spaces. It is imperative that all of the non-breaking spaces be preserved when the code samples moved into Flare, as they represent specific amounts of field padding relating to databases.

Cutting and pasting from Word into Flare results in all of the non-breaking spaces (in Word) being compressed to one space (in Flare). I understand that Flare, being an XML editor, is going to compress multiple spaces into one space. Is there a way (either using cut and paste or by some other method) to get Flare to recognize when non-breaking spaces are being moved into the editor?

I'm using Flare 3.1. The target output is Word, though I've not even gotten to working with this in the output.
KevinDAmery
Propellus Maximus
Posts: 1985
Joined: Tue Jan 23, 2007 8:18 am
Location: Darn, I knew I was around here somewhere...

Re: Code Samples - Maintaining Spaces WITHIN code

Post by KevinDAmery »

I can think of two options:

1) Try using the Word import rather than copy paste from Word. Hopefully that will bring the content in correctly.

OR

2) Paste the content into Preformatted tags (which I believe use the PRE tag, but don't quote me...)
Until next time....
Image
Kevin Amery
Certified MAD for Flare
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Code Samples - Maintaining Spaces WITHIN code

Post by NorthEast »

Yep, using a pre tag will work.

Beware that the Flare XML editor does not display the spaces though (i.e. everything will be flush left), but it will display correctly in the output (and preview).
Post Reply