OMG: it was trivial to do this!  How did we ever live without it??

Recent revs allow complex @data nodes, like @data 
qt-gui-plugin-style-sheet, to be composed of the body text of the @data 
node itself, concatenated to the body text of all its descendants, in 
outline order.  

So now the @data qt-gui-plugin-style-sheet node itself consists of some 
general comments, with descendant nodes for the body pane, tree pane, etc. 
etc.  There is no limit of nesting: the Plugins node has a child for each 
plugin that uses style sheets.

Not only does this new arrangement make it far easier to find the style 
sheet of interest, it makes debugging style sheets easier.  Typically, an 
error in any part of the style sheet invalidates the whole style sheet.  
With the new organization, one can swap nodes into or out of the @data node 
to find the invalid node or nodes.

Edward

P.S.  Two fine points about the concatenation of data:

1. Descendant nodes whose headlines start with '@' do not become part of 
the data.  At present, no @data nodes have descendants, but this convention 
does something reasonable if nodes like @int or @string were descendants of 
an @data node.

2. The @data parser adds a newline to every "fragment" if necessary.  This 
doesn't seem to matter for style sheets, but it could matter for other 
kinds of @data data.

EKR

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to