Skip to main content
Daniel_Marcos
New Member
July 3, 2023

Allow break lines in string variables

  • July 3, 2023
  • 22 replies
  • 7737 views

I’m trying to localize an app using the new variables feature but it looks like I can’t add break lines to the string.
For titles, especially in some languages like Japanese where there are no spaces, it is totally necessary.

Is this planned for the near future?

22 replies

David_Clayton
July 31, 2023

I would also love this feature, I’m trying to error messages in multiple languages and we really need line breaks!

chanwen
August 14, 2023

Agree, I would love this feature, too. This is critical for marketing-related materials in character-based languages such as Chinese and Japanese. Otherwise, some key phrases might be wrapped accidentally into two lines and cause confusion when reading.

Borys_Sviet
August 16, 2023

@Daniel_Marcos
There is a workaround this issue. Before pasting text into variable input, put it aside as plain text, make a break line with shift + enter shortcut, then copy and paste this text to the variable input

Daniel_Marcos
New Member
August 28, 2023

Thank you Borys for the tip! It works great!!

November 26, 2023

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

rahend
Active Member
March 6, 2024

Continuing the discussion from Allow break lines in string variables:

The approach from @Borys_Sviet did not cover the paragraph spacing. What I’m trying is to handle paragraphs in multi-language using variables, so sometimes I need to break lines and add a paragraph space to them.

Jason_Thompson
New Participant
April 5, 2024

Doing two line breaks (eg; old skool HTML where we did

) seems to work and give a simulated paragraph break. You’d do SHIFT-Enter twice.

rahend
Active Member
April 18, 2024

Yes indeed @Jason_Thompson, but it doesn’t work with paragraph spacing properties. doesn’t it?

Brian_Nail1
May 10, 2024

This workaround didn’t work for me. It ended up looking like this and failing to insert the line breaks.
image

Benjamin18
New Member
May 20, 2024

Inserting a UNICODE paragraph Separator (U+2029) into the variable string works here:

  • Figma desktop app: 116.15.15
  • macOS 14.5