[oXygen-user] Weird indentation in xs:annotation/xs:documentation

George Cristian Bina george at oxygenxml.com
Tue Mar 19 18:27:07 CDT 2013

Hi Florent,

C-i is indent selection and it performs only indenting, not format and 
indent. C-Shift-i is format and indent element and that should perform a 
format and indent action on the current element, and indeed I see that 
does not break the line where it should (similar to where the format and 
indent action on the whole document split it) so we have to look into that.

Best Regards,
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

On 3/19/13 6:07 PM, Florent Georges wrote:
>    Hi,
>    When indenting the content of an xs:documentation in an XML schema
> (using C-i), the indentation algorithm seems to treat the first line
> differently.  For instance, in the following schema, the first line is
> indented at about column 80, and the two subsequent lines are indented
> at about column 100:
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
>     <xs:simpleType name="foobar">
>        <xs:annotation>
>           <xs:documentation>
>              <p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam
>              nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi
>              enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut
>              aliquip ex ea commodo consequat.</p>
>           </xs:documentation>
>        </xs:annotation>
>     </xs:simpleType>
> </xs:schema>
>    Any idea?
>    Regards,

More information about the oXygen-user mailing list