Page 1 of 1
Non-breaking space in variable
Posted: Thu Nov 17, 2016 2:10 am
by Matze
Hi all,
how can I insert a non-breaking space in a variable? Via shortcut it does not work.
Re: Non-breaking space in variable
Posted: Fri Nov 18, 2016 11:34 am
by BedfordWriter
Good question. Made me interrupt my day until I figured out the answer. I can see lots of uses for special characters in variables.
I haven't had success trying to add one with the user interface, but you can add anything you want to the flvar file. You'll find that in your project folder, MyVariables.flvar. It's XML, so that controls what it can contain. It won't let you use the character name ( ) but it will let you use the hexadecimal code, &x#A0;
So, for example:
Code: Select all
<Variable Comment="" Name="CompanyName">MadCap Software</Variable>
You can find a list of character values at the following wikipedia link.
https://en.wikipedia.org/wiki/List_of_X ... references
For example, let's say that you want an ellipsis. Looking it up, we find code U+2026 (8230), where the useful bit is the number 2026. In your variables file, you can write that as &x#2026;
Re: Non-breaking space in variable
Posted: Mon Nov 28, 2016 2:11 am
by Matze
Hi,
many thanks for your workaround, I will try it and whow: I can´t belive that I cannot make a non-breaking variable directly via Flare

Re: Non-breaking space in variable
Posted: Mon Nov 28, 2016 3:54 am
by Scotty
BedfordWriter wrote:Good question. Made me interrupt my day until I figured out the answer. I can see lots of uses for special characters in variables.
What are you thinking?
Re: Non-breaking space in variable
Posted: Mon Nov 28, 2016 5:26 am
by Matze
ok, nice, thanks a lot, piece of cake, I´ve also change my non-breaking hyphen with
Re: Non-breaking space in variable
Posted: Wed Dec 13, 2017 12:04 pm
by riboslavin
Pardon me for bringing up the dead.
We're in a situation where, for branding and aesthetic reason, we can't break between certain words. If we try editing the .fltar target file in a text editor, putting in the entity code (even as hex) causes Flare to balk at the &. We're running Flare 12.
Can someone confirm they've been able to insert an HTML entity like a non-breaking space in a variable and had the PDF build accordingly?
Thanks.
Re: Non-breaking space in variable
Posted: Wed Dec 27, 2017 9:23 am
by carmonli
I actually did this just today (without looking at the thread, just tried it) and it worked perfectly.
Re: Non-breaking space in variable
Posted: Fri Dec 29, 2017 11:47 am
by Daniel Ferguson
riboslavin wrote:Pardon me for bringing up the dead.
We're in a situation where, for branding and aesthetic reason, we can't break between certain words. If we try editing the .fltar target file in a text editor, putting in the entity code (even as hex) causes Flare to balk at the &. We're running Flare 12.
Can someone confirm they've been able to insert an HTML entity like a non-breaking space in a variable and had the PDF build accordingly?
Thanks.
If doing this in a variable isn't working for you, could you instead use a snippet? You can insert non-breaking spaces in a snippet easily, and then insert the snippet as snippet text in your topics.
Re: Non-breaking space in variable
Posted: Wed Nov 06, 2019 6:56 am
by paul_collins
If you manually insert a into your variables be aware that the Flare editor will automatically strip it out again the next time you edit any of the other variables in that variable set.