Can I turn off auto-insertion of non-breaking spaces?

This forum is for all Flare issues not related to any of the other categories.
Post Reply
Zanderxo
Propeller Head
Posts: 32
Joined: Mon Mar 09, 2015 5:28 pm

Can I turn off auto-insertion of non-breaking spaces?

Post by Zanderxo »

It seems that Flare takes it upon itself to insert non-breaking spaces ( ) on my behalf when it thinks something perhaps should be kept together. For example, when I type MY Data File.csv into a "filename" span I use a lot, the XML is likely to show as <span class="filename">MY Data File.csv</span> even though I didn't type it that way.
Trouble is, Flare may know how to deal with this just fine down the road when creating outputs, but my automation tooling has to perform painful gymnastics, such as

private string ReplaceIllegalFileChars(string name)
{
string retVal = name;
char[] chars = { '\u00A0', '\u0020' };//remove Flare's  
retVal = retVal.Replace(chars[0], chars[1]);
return retVal;
}

What is Flare's logic for inserting  
Is this subject to user control in any way? For example, can I turn it off?

Many thanks! :D
MattyQ
Sr. Propeller Head
Posts: 136
Joined: Tue Sep 30, 2014 7:10 am
Location: Roanoke, VA

Re: Can I turn off auto-insertion of non-breaking spaces?

Post by MattyQ »

What is Flare's logic for inserting  
Unfortunately, this is a super easy thing to insert as a user. The non-breaking space shortcut is "Shift+Space" -- when you enter capital letters, such as you say (MY Data File.csv), you may not be releasing the shift key between the Y and D, or you may be preemptively hitting the shift key as you hit the spacebar, and so it's inserting the non-breaking space as you go.

Supposedly you can disable this via the application settings, where you set keyboard shortcuts, but I was never successfully able to prevent Flare from adding the non-breaking space. Some others might have had success.
Post Reply