Line breaks in text variable

Feb 19, 2013

When I create a new text variable, I would like to assign an initial value containing line breaks. How do I do that?

A variable connected with a textentry field can contain line breaks, so I know it must be possible. With a little javascript I can see, that the line breaks is ASCII character 13 (carriage return), but how do I enter that value in the entry for a variables initial value? I have - without any luck - tried enter, shift + enter and \n.

Jørgen

9 Replies
Jørgen Nielsen

Steve,

OK, nice to know!

I found a workaround: Copy/paste or enter your text with line breaks into a textentry field (design time). Then copy/paste the text from the textentry field to the variable's input box. The text will appear without line breaks in the input box, but when you show it in a text field (run time), the line breaks show up. Voila!

Thanks

Jørgen

Quentin Hua

Hi,

Just to say thank you! That was exactly what I was looking for.

The Export/Import Translation also do the job (especially if you have a lot of variables as in the course we are working on).

Unfortunately, we cannot change the font of some words (color, size, bold,...). Maybe someone has another trick ?

Quentin Hua

Hi Ashley,

Maybe it is asking too much, but it would be cool if we can change the font of the text of a text variable.

In the attached sample, when hovering on the image, the appropriate message is displayed according to the slide. It is done with the text variable "Msg".

We tried to export them in Word, change color, bold,... and then import the "translation" but it does not work.

 

Ashley Terwilliger-Pollard

Hi Quentin,

I may be misunderstanding (happens often towards the end of a Monday). But you're looking to update each individual variable change from within the translation document so that they'll all appear differently on the slides themselves? I don't think you can do that - as it's control by the variable reference placeholder on your master slide, not what the text is being changed to. 

You're welcome to share your thoughts in the form of a feature request, but I expect it to always default to the formatting of the variable reference itself.