Non-breaking-space for variables

This forum is for all Flare related Tips and Tricks.
Have a tip or trick you use while working in Flare? Share it here.
Post Reply
Matze
Sr. Propeller Head
Posts: 166
Joined: Mon Jun 20, 2016 10:35 pm

Non-breaking-space for variables

Post by Matze »

Hi again,
maybe an old issue but HOW can I create non-breaking-spaces in the variable sets?

In the past I'd tested it with the   value. Indeed, its xml but in our manual are hundrets of variables without non-breaking spaces, not good :oops:
trent the thief
Propellus Maximus
Posts: 613
Joined: Wed Feb 01, 2006 6:21 am
Location: Off in the dark....

Re: Non-breaking-space for variables

Post by trent the thief »

Hi,

That &#160 is the unicode non-breaking space that you'd get from Symbols > Insert Character.

Give us a little more info on what you're trying to accomplish and what you're looking at.

Keep in mind that you can open those variable set files in a text editor to make sweeping changes. Once you determine exactly what you have and what you what to have, there's a good chance that search and replace can fix the issue.
Trent.

Certifiable.

Image

umm...
I meant MAD Certified.

Official Propeller Beanie Owner :-)

:flare: Are you on Flare's Slack channels? PM me for an invitation! :flare:
Matze
Sr. Propeller Head
Posts: 166
Joined: Mon Jun 20, 2016 10:35 pm

Re: Non-breaking-space for variables

Post by Matze »

We are often use a couple of variables, such as special disassembly / assembly tools.
In the example below from one variable set we want to avoid a line break between SH and 433.

After making a backup from the variable set I´d often tried what you are saying,
EvaluatedDefinition="SH 433>SH&#160433

Why it is it not working in HTML and PDF?


<Variable
Name="ServiceTool_SH433"
Comment=""
EvaluatedDefinition="SH 433">SH 433
</Variable>
Matze
Sr. Propeller Head
Posts: 166
Joined: Mon Jun 20, 2016 10:35 pm

Re: Non-breaking-space for variables

Post by Matze »

... good idea not to forget the EvaluatedDefinition="SH 433>SH&#160;433

:D :D :D

Thx a lot!
Matze
Sr. Propeller Head
Posts: 166
Joined: Mon Jun 20, 2016 10:35 pm

Re: Non-breaking-space for variables

Post by Matze »

:oops:
But in another project it does not work. In the output no space is visible, but why?

<Variable
Name="Dev1_grille_Nr"
Comment="E-Teil"
EvaluatedDefinition="[010] frontgrille">[010]&#160;frontgrille</Variable>
trent the thief
Propellus Maximus
Posts: 613
Joined: Wed Feb 01, 2006 6:21 am
Location: Off in the dark....

Re: Non-breaking-space for variables

Post by trent the thief »

Hi,

Use SHIFT+SPACE to insert a non-breaking space into a variable.

https://i.imgur.com/xqwvX8a.png

None of the standard codes will work (https://www.toptal.com/designers/htmlar ... ing-space/)
Trent.

Certifiable.

Image

umm...
I meant MAD Certified.

Official Propeller Beanie Owner :-)

:flare: Are you on Flare's Slack channels? PM me for an invitation! :flare:
Matze
Sr. Propeller Head
Posts: 166
Joined: Mon Jun 20, 2016 10:35 pm

Re: Non-breaking-space for variables

Post by Matze »

Hi Trent,
sorry for bothering but maybe I´m to stupid to understand :mrgreen:

If there is no change to insert any kind of code via editor because it is not working, HOW can I insert it in the standard variable view?
Shift+Space in the standard view does not work.
trent the thief
Propellus Maximus
Posts: 613
Joined: Wed Feb 01, 2006 6:21 am
Location: Off in the dark....

Re: Non-breaking-space for variables

Post by trent the thief »

You won't see any code inserted. There's no apparent difference in the variable text.

When you press SHIFT+SPACE in a variable definition, Flare enters a visual space no different from any other. When generating the output, Flare replaces those SHIFT+SPACEs with &nbsp;.

Watch this gif: https://i.imgur.com/SoNcWKv.gif.
Trent.

Certifiable.

Image

umm...
I meant MAD Certified.

Official Propeller Beanie Owner :-)

:flare: Are you on Flare's Slack channels? PM me for an invitation! :flare:
Post Reply