web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Hyphen in Compound Terms Breaking Across Lines

(1) ShareShare
ReportReport
Posted on by 2

I’m encountering an issue in the Customer Insights Journeys email editor related to the display of compound terms with hyphens. Specifically, the editor does not treat the hyphenated compounds as a single unit, leading to instances where the hyphen appears at the end of one line and the next word is forced onto the following line. This breaks the intended flow of the text and looks visually inconsistent.

For example, this often occurs with Finnish phrases, as shown below:

Current (undesired) output:

  • “Exploring options -” on one line, and “asiakkaat” on the next line.
  • “Asiakkaiden etu -” on one line, with “ryhmässä” on the next.
     

Examples:

  • Desired: “exploring options -” on one line, and “-asiakkaat” on the next.


     
  • Current (undesired): “exploring options -” on one line, and “asiakkaat” on the next.

     



 

What I’ve Tried

To address this issue, I’ve experimented with the following CSS properties:

  1. white-space: nowrap; – This forces the text to stay on one line but is problematic as it doesn’t allow natural line breaks for longer sentences.
  2. word-break: keep-all; and white-space: pre-wrap; – These were added in an attempt to keep the hyphenated word together without forcing the entire sentence to one line, but it still breaks the compound term across lines.
  3.   (non-breaking spaces) – I manually added   between the hyphen and the compound term in HTML to prevent breaking. However, due to limitations with the editor, it’s not practical for longer texts or dynamic content.

Despite these attempts, the editor continues to break hyphenated compounds inconsistently.
 

The goal is to keep the hyphenated compound as a single visual unit to prevent the hyphen from being “orphaned” on one line. The ideal solution would be to incorporate an automation in the email editor that supports this functionality by automatically adding   in the HTML code when entering hyphenated compounds in the visual editor. This would ensure that the compound term remains intact across lines, preserving readability and visual consistency without manual HTML edits.


Thanks in advance for any insights or solutions!


 
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
DAnny3211 Profile Picture

DAnny3211 126

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 117

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 70 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans