On Thursday, September 19, 2013 12:12:52 PM UTC-5, Fidel N wrote: IMO, directives should also be attributes of a node.
Sorry, but directives are inheritable, so directives are attributes of *positions*, not nodes. This can cause problems from time to time. For instance, I like to minimize directives by defining, say, @language rest in the ancestor node of notes. But when I clone a node and move the clone out of the tree I have to insert the @language rest in the node. Not a terrible problem: when I'm done with the note node I just remove the @language rest. In short, nodes don't have any "intrinsic" directives, except for those defined in the node itself. Thus, to determine the directives in effect at position p, you call c.scanAllDirectives(p) HTH. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/groups/opt_out.
