Page 1 of 1

Entering a newline from the middle of a tag

Posted: Fri Mar 27, 2009 6:58 am
by MarkL
Hi,

I looked in the help, but I can't find any keyboard shortcut for entering a newline while in the middle of a tag without moving the tag.

For example, let say you've just type the following
<tag>Blah|</tag>
^ curser here

When you type <tag>, Oxygen automatically inserts </tag> and so all you need to type is blah, right? OK, so now I want to move to insert a linefeed, but I want </tag> to stay where it is.

In TextMate, you can press cmd-Enter and it will insert a linefeed but leave the text after the curser on the existing line.

I can't see how to do that in Oxygen. That is, I have to move the curser to the end of the line and then hit enter. Is that the only way to do it, or am I missing something?

Thanks,
Mark

Re: Entering a newline from the middle of a tag

Posted: Fri Mar 27, 2009 1:54 pm
by sorin_ristache
Hello,

Yes, that is the only way to do it. We will consider adding a shortcut like CMD-Enter for inserting a newline at the end of the current line and moving the cursor to the next line.


Regards,
Sorin

Re: Entering a newline from the middle of a tag

Posted: Fri Oct 02, 2009 11:32 am
by Radu
Hello Mark,

Oxygen 11 (available in a few weeks) will have the Insert new line after action available either from the contextual menu -> Source submenu or with the Cmd+Alt+Enter shortcut which can be configured from the Menu shortcut keys preferences page.

Regards,
Radu

Re: Entering a newline from the middle of a tag

Posted: Tue Oct 06, 2009 12:30 pm
by MarkL
Hi,

That's great! Thanks very much.

Cheers,
Mark

Re: Entering a newline from the middle of a tag

Posted: Tue Oct 06, 2009 9:05 pm
by ericdeko411
Radu wrote:Hello Mark,

Oxygen 11 (available in a few weeks) will have the Insert new line after action available either from the contextual menu -> Source submenu or with the Cmd+Alt+Enter shortcut which can be configured from the Menu shortcut keys preferences page.

Regards,
Radu
This is great news. I hope it's coming good for the release.
Cheers!

Eric Deko

Re: Entering a newline from the middle of a tag

Posted: Thu Oct 08, 2009 12:34 pm
by Radu
Hi,

An Oxygen 11 beta announcement is available here:
http://www.oxygenxml.com/pipermail/oxyg ... 02720.html

so you can try it out.

Regards,
Radu

Re: Entering a newline from the middle of a tag

Posted: Mon Feb 15, 2016 9:37 am
by angelism
Hi,

I tried Ctrl+Alt+Enter but it did not work. A new line gets added in the Text mode but nothing changes in the output/ Author mode.

Thanks

Re: Entering a newline from the middle of a tag

Posted: Mon Feb 15, 2016 10:30 am
by Radu
Hi,

What XML vocabulary are you using.
Usually when publishing from XML content, the text gets normalized, new lines are replaced with a space.
XML is based on semantics so usually to have a new line in the output you should start a new paragraph (use a paragraph element if your vocabulary has one).

Regards,
Radu

Re: Entering a newline from the middle of a tag

Posted: Wed Feb 17, 2016 2:48 am
by angelism
Hi Radu,

The XML version is as follows:
<li>Run the following command to make the <filepath>abc.bin</filepath> file,
executable: <lines><codeph>zyx</codeph></lines></li>

In the PDF output there is a wide spacing between "command:" and "abc./def" akin to two new line tags. A newline tagadds just one space hence it is better than adding <p> tag.

Is there way to add a new line tag in Oxygen Editor 17.0 ?

Re: Entering a newline from the middle of a tag

Posted: Wed Feb 17, 2016 3:17 pm
by Radu
Hi,

I will assume you are editing DITA documents, is this correct?
There is no default way in DITA to specify that in a certain place of the XML text content a hard line break should be added.
You could probably create an output customization for this. So maybe you could try to register on the Yahoo DITA Users List and ask for help there:

https://groups.yahoo.com/neo/groups/dita-users/info

Regards,
Radu