Format corruption when preparing scenario

Having trouble installing Oxygen? Got a bug to report? Post it all here.
archenroot
Posts: 22
Joined: Wed Oct 26, 2011 2:20 pm

Format corruption when preparing scenario

Post by archenroot »

Hi,

editor somehow formats rows on insert in following way.
Here is default data in editor

Code: Select all


<xsd:element name="GetDocumentByTypeInputDM" type="GetDocumentByTypeInputDM
<xsd:element name="GetDocumentByTypeOutputDMGetDocumentByTypeOutputDM
<xsd:element name="GetAttributesOfDocumentInputDMGetAttributesOfDocumentInputDM
<xsd:element name="GetAttributesOfDocumentOutputDMGetAttributesOfDocumentOutputDM
<xsd:element name="GetContentOfDocumentInputDMGetContentOfDocumentInputDM
<xsd:element name="GetContentOfDocumentOutputDMGetContentOfDocumentOutputDM
<xsd:element name="CreateNewVersionOfDocumentInputDMCreateNewVersionOfDocumentInputDM
<xsd:element name="CreateNewVersionOfDocumentOutputDMCreateNewVersionOfDocumentOutputDM
<xsd:element name="CreateNewDocumentInputDMCreateNewDocumentInputDM
<xsd:element name="CreateNewDocumentOutputDMCreateNewDocumentOutputDM
Then I try to ctrl+v between two combined words as bellow:

Code: Select all


<xsd:element name="GetDocumentByTypeInputDM" type="GetDocumentByTypeInputDM
<xsd:element name="GetDocumentByTypeOutputDM" type="GetDocumentByTypeOutputDM
<xsd:element name="GetAttributesOfDocumentInputDM" type="GetAttributesOfDocumentInputDM
<xsd:element name="GetAttributesOfDocumentOutputDM" type="GetAttributesOfDocumentOutputDM
<xsd:element name="GetContentOfDocumentInputDM" type="GetContentOfDocumentInputDM
<xsd:element name="GetContentOfDocumentOutputDM" type="GetContentOfDocumentOutputDM
<xsd:element name="CreateNewVersionOfDocumentInputDM" type="CreateNewVersionOfDocumentInputDM
<xsd:element name="CreateNewVersionOfDocumentOutputDM" type="CreateNewVersionOfDocumentOutputDM
<xsd:element name="CreateNewDocumentInputDM" type="CreateNewDocumentInputDM
<xsd:element name="CreateNewDocumentOutputDMCreateNewDocumentOutputDM
The editor moves each row by using TAB to the right.

Ladislav
archenroot
Posts: 22
Joined: Wed Oct 26, 2011 2:20 pm

Re: Format corruption when preparing scenario

Post by archenroot »

After I finished element definition by putting "/> at the end of each row, the rows are again formatted as in the beginning.

But if I switch on unfinished and bad formatted row and jump to the next on and finish it by "/>, this one is also then moved again to the left, but not to it's initial positon, but to the beginning of row above (which I left unfinished)
archenroot
Posts: 22
Joined: Wed Oct 26, 2011 2:20 pm

Re: Format corruption when preparing scenario

Post by archenroot »

Definitely this suppose to be bug.
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: Format corruption when preparing scenario

Post by adrian »

Hello,

This is not a bug, but this feature(indent on paste) will not work as expected on such a broken XML document.

If you work with a lot of broken XML files and this bothers you, you can disable this feature in Options > Preferences, Editor > Format > XML, Indent subsection, uncheck the option Indent on paste.

Let us know if the problem persists or you encounter other issues.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
archenroot
Posts: 22
Joined: Wed Oct 26, 2011 2:20 pm

Re: Format corruption when preparing scenario

Post by archenroot »

Hi, I'll check it and let you know. You know this happens when I cut some piece of XSD from old and paste it into new XSD document, so I need to repair it manually.

Thanks.
Post Reply