Cursor positioning in text tab

<oXygen/> general issues.
queshaw
Posts: 41
Joined: Wed Aug 08, 2007 5:56 am

Cursor positioning in text tab

Post by queshaw » Mon Nov 26, 2007 9:18 am

If I append an element from the outline that has content, it positions the cursor indented on the next line, e.g.:

<doc>
<!-- cursor -->
</doc>

Then if I append an element from the outline, it inserts 2 more linebreaks:

<doc>

<sec>
<!-- cursor -->
</sec>
</doc>

Is there a way to change the behavior, so the sequence would be:

<doc><!-- cursor --></doc>

<doc>
<sec><!-- cursor --></sec>
</doc>

Also, if I insert a '/' to convert start and end tags to one empty element tag, it leaves 3 line breaks after the tag, e.g. :

<sec>
<mark>

</mark>
</sec>

becomes:

<sec>
<mark/>


</sec>

So, I end up spending a lot of time removing extra line breaks.

Can the cursor positioning scheme be changed, so the sequence would be:

<sec><!-- cursor --></sec>

<sec>
<mark><!-- cursor --></mark>
</sec>

And if I used content completion instead of the outline, the sequence would be:

<sec><!-- cursor --></sec>

press enter:

<sec>
<!-- cursor -->
</sec>

<sec>
<mark/>
</sec>

queshaw
Posts: 41
Joined: Wed Aug 08, 2007 5:56 am

Re: Cursor positioning in text tab

Post by queshaw » Mon Nov 26, 2007 9:24 am

Oops. I swapped some lines around by accident, about the empty tags, I meant:
queshaw wrote:Also, if I insert a '/' to convert start and end tags to one empty element tag, it leaves 3 line breaks after the tag, e.g. :

<sec>
<mark>

</mark>
</sec>

becomes:

<sec>
<mark/>


</sec>

So, I end up spending a lot of time removing extra line breaks.

Can the cursor positioning scheme be changed, so the sequence would be:

<sec><!-- cursor --></sec>

<sec>
<mark><!-- cursor --></mark>
</sec>


<sec>
<mark/>
</sec>

Post Reply