Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent line breaks (general)

I'm writing a text on C++. But often the line breaks after the first "+", so I get C+

+

This is just an example. How can I prevent line breaking of arbitrary parts in my odt doc?

like image 529
DarkTrick Avatar asked Oct 23 '25 18:10

DarkTrick


1 Answers

There is no formatting option at the moment

Use the Unicode Character U+2060. Insert it an every point the line breaks, but it shouldn't. It glues two parts together.

Example for "C++" ( | represents the text cursor )

  • C|++
  • Press Ctrl+Shift+U
  • u will appear on the screen
  • Type in 2060
  • Press Enter
  • Now the line won't break between C and +.
  • Move cursor: C+|+
  • repeat process
like image 87
DarkTrick Avatar answered Oct 26 '25 14:10

DarkTrick