Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,306
Community Members
 
Community Events
176
Community Groups

How to insert a hard dash (non-breaking dash)?

Hi, I need to use non-breaking dashes in our product names, since most of them start with R-... and we don't want that hanging at the end of the the line. 

I found how to insert a non-breaking space, but not how to insert a non-breaking dash. Can you help?

Thanks!

3 answers

You could always insert the unicode character non-breaking-hyphen (u+2011). To try it out, you can just copy the character ‑ and paste it. That should avoid a line break. Example:

this‑sentence‑will‑result‑in‑a‑very‑long‑line‑but‑because‑it‑uses‑non‑breaking‑dashes‑it‑will‑probably‑be‑line‑broken‑in‑the‑middle‑of‑a‑word‑or‑not‑at‑all.

vs

this-sentence-will-result-in-a-very-long-line-but-because-it-uses-normal-dashes-it-will-most-probably-be-line-broken-just-after-a-dash.

How do you insert a unicode character by the code when editing a Confluence page?

Like rolland_vandersluis likes this

Thanks, copying and pasting that character "‑" worked for me!

Go into the code editing (<> button) mode and replace the - with &#8209;

Maybe non-breaking-spaces before and after the dash will fit your requirement. Of course only if having a space bevore and after the dash is an option. 

Best, Eugen

I also need a non-breaking dash!

the non-breaking space is essential for referencing Standards such as IEC 61850 whee the space is mandatory but annoying when it is at the end of a line (perhaps as a result of zooming the screen).

but that Standard has many sub parts such as IEC 61850-7-4 so I need a non-breaking dash.

I have just found the non-breaking Space symbol as <<+Insert>> then <<Symbol>> ... although a bit annoying it is so hard to get to compared to a keyboard short cut like in Word where I press Ctrl+Shift+Space

Yes, the Confluence editor is lacking (as for all Atlassian products). At least you can insert a non-breaking-space via the UI, by way of the +(Insert more content) :: Symbol popup. For the NBSP you need to click on its invisible spot at the left of the first row. Sadly, a non-breaking-hyphen is not represented there (where "sadly" is a euphemism for "angrifyingly").

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events