How do you type a non-breaking space in the Editor?

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
DanTemple
Posts: 26

How do you type a non-breaking space in the Editor?

Fri May 29, 2015 4:57 pm

Is there some shortcut? I've tried Shift-Space, Ctrl-Space... ?

best regards,
Costin
Posts: 275

Re: How do you type a non-breaking space in the Editor?

Fri May 29, 2015 5:59 pm

Hello,

As the no-break space entity is not available in all of the XML document types, but for the common ones, in order to see if a shortcut key combination can be assigned to such entity, could you please let us know what document type are you using? Is it a general XML file, or is it a DITA/DocBook/XHTML document?

Also, where exactly do you need to insert "&nbsp;" entities - do you need that in "Text", or in the "Author" (visual) editing mode?

By default there is no key-combination assigned for adding this entity, but, if you need to add the non-breaking space in one of the above mentioned common document types mentioned in the Author editing mode, this could be most probably done by defining a custom action in the Document Type Association (from oXygen menu Options > Preferences > Document Type Association) appropriate to your document type (DITA/DocBook/XHTML).
Basically this could be done by defining a new Action in the Author section of the appropriate document type, which would use the "InsertFragmentOperation" default operation with the "&nbsp;" set as the value.

In the configuration window for your custom action, you should be able to choose a key-combination, but this should be choose wisely, to not interfere with other combinations already bound to other actions which could be performed in a same given context.

Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
DanTemple
Posts: 26

Re: How do you type a non-breaking space in the Editor?

Mon Jun 01, 2015 2:44 pm

Thanks - I seem to have got it working, by duplicating one that existed already and modifying it.

Ctrl-Shift-Space is now the non-breaking space.
Sathya
Posts: 1

Re: How do you type a non-breaking space in the Editor?

Thu Jul 27, 2017 7:36 am

Hi, We can also use the following options:

For Nonbreaking space:
Edit > Insert from Character Map > select No-break Space

For Nonbreaking Hyphen:
Edit > Insert from Character Map > select Non-breaking Hyphen

Hope this helps.

Return to “Common Problems”

Who is online

Users browsing this forum: No registered users and 2 guests