Page 1 of 1

Change in Content Menu—New line-break insertion

Posted: Wed Jun 03, 2015 5:46 pm
by billb_vasont
The behavior of context menus in Oxygen 17 has changed from previous versions. Previously, when my cursor was in an element and I pressed ENTER, the first option in the context menu was to split the current element. It was easy, then, to just hit ENTER twice to split the element and continue working. Now the context menu defaults to inserting a line break, so I then have to add another keystroke to split the element. I can only see this behavior as being useful in code blocks or other preformatted elements (or in text view, where this is the standard behavior anyway). I almost never want to introduce line breaks in text elements except in such limited circumstances.

Was this actually implemented because of a common request? I find it irritating. Can it be disabled (looked through the preferences but saw nothing obvious)?

Re: Change in Content Menu—New line-break insertion

Posted: Wed Jun 03, 2015 6:58 pm
by adrian
Hi,

Since you mentioned "split", I'm guessing you're referring to the Author mode. The default behavior has not changed in v17.0, the default when you hit ENTER is still to show the context menu with the first option being Split. The possibility to insert a line break only appears in space preserve elements (like code blocks). You probably have a specific context where this happens.

What type of documents are you using (DITA, DocBook, TEI, custom)?
Have you tested with some of the Oxygen sample files (from Oxygen/samples)? Do you see the same behavior there?


Regards,
Adrian

Re: Change in Content Menu—New line-break insertion

Posted: Wed Jun 03, 2015 7:35 pm
by billb_vasont
I am using DITA, and I'm using XML Editor in Author mode. I've tested in XML Author 15.2 in Author mode with the same results.

When I place my cursor in p, step, cmd, or context (and just about anything else) and press ENTER, I see ENTER first (which inserts a line break). The next option down is New step or New p or whatever element I'm in. I tested on 14.2 on a different system, where I get Split p instead. I also tested in the applet, which works the same as in 14.2. I also tested on 15.2 on our data center, which is behaving like version 17 on my desktop. A colleague here just confirmed this behavior.

So essentially, the behavior I'd want in codeblock (the line breaks) is occurring in every element.

I'm thinking now that it might be related to settings in Editor > Format > XML. I almost always disable anything that pretty prints the XML in text view because that causes issues in translation. However, I'm not seeing anything that clearly would cause this issue.

Re: Change in Content Menu—New line-break insertion

Posted: Wed Jun 03, 2015 10:03 pm
by billb_vasont
Mystery solved. It looks like some elements were added to the list of elements in which to preserve space. So it was not a change to Oxygen as you stated.

Re: Change in Content Menu—New line-break insertion

Posted: Thu Jun 04, 2015 10:25 am
by Radu
Hi Bill,

Right, once an element is considered space preserve by Oxygen, pressing ENTER inside it will present first the option to add a line break and then the option to split it.

Regards,
Radu