Page 1 of 1

Format corruption when preparing scenario

Posted: Wed Dec 07, 2011 10:13 pm
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

Re: Format corruption when preparing scenario

Posted: Wed Dec 07, 2011 10:17 pm
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)

Re: Format corruption when preparing scenario

Posted: Thu Dec 08, 2011 2:08 pm
by archenroot
Definitely this suppose to be bug.

Re: Format corruption when preparing scenario

Posted: Thu Dec 08, 2011 4:28 pm
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

Re: Format corruption when preparing scenario

Posted: Thu Dec 29, 2011 4:44 pm
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.