
Thank you George. By the way, you are right about C-S-i on Windows, but it looks like both actions are bound to "cmd-i" on Mac (sorry I said "C-i", but this is the key labeled on my laptop "cmd", I think it used to be an apple before). Regards, -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/ ----- Mail original -----
De : George Cristian Bina <george@oxygenxml.com> À : Florent Georges <lists@fgeorges.org> Cc : oXygen User ML <oxygen-user@oxygenxml.com> Envoyé le : Mardi 19 mars 2013 23h27 Objet : Re: [oXygen-user] Weird indentation in xs:annotation/xs:documentation
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 -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
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,