Page 1 of 1

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

Posted: Fri Oct 07, 2016 2:49 pm
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

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

Posted: Mon Oct 10, 2016 7:08 am
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.