closing tags modified when 1st letter of the content typed

Having trouble installing Oxygen? Got a bug to report? Post it all here.
piotrb
Posts: 18
Joined: Fri Jan 09, 2009 9:18 pm

closing tags modified when 1st letter of the content typed

Post by piotrb »

This seems akin to the problem reported in http://www.oxygenxml.com/forum/topic3007.html "xml element tags modified when 1st letter of attribute typed" - I get similar behaviour when renaming tags in Oxygen 10.
  • create a text element with no attributes in the opening tag
  • backspace the opening tag
  • type the new name
  • move the cursor inside the element, right after '>'
  • type anything
Result: the closing tag gets prefixed with the first (and only the first) letter typed inside the element.

Examples:
  • original: <orth>sth</orth>
  • renamed:
    • <test>Dsth</Dtest>
    • <test>DDDDsth</Dtest>
-------------
OS = win xp sp3
Java = Sun 1.6.0_11
Oxygen 10.0, build 2008102212

Content completion settings:
Auto close last opened tag: Y
Automatically rename matching tag: Y
Use content completion: Y
Close the inserted element: Y
If it has no matching end tag Y
Add element content Y
Add optional content N
Add first Choice particle N
Case sensitive search Y
Cursor position between tags N
Show all entities Y
Insert the required attributes Y
Insert the fixed attributes N
Show recently used items Y
Max number recent items shown 6
Learn attributes values Y
Learn on open document Y
Learn words N

--
Regards,

Piotr
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: closing tags modified when 1st letter of the content typed

Post by sorin_ristache »

Hello,

Yes, we can reproduce the problem. The name of the end tag should change only together with the name of the start tag, not when the text content of the XML element is modified. We will fix it in version 10.1 which will be released in February 2009.


Thank you for reporting it,
Sorin
Post Reply