Huh?

There's a fair amount of logic in the @root tangle code to allow or
disallow multiple parts to a section definition.

It makes sense that when encountering a section reference (i.e., a
point at which a section is to be interpolated) that you shouldn't at
that point be in the midst of defining the contents of that section,
lest interpolation of the section include itself ad infinitum.  If
that's the point, the error message could be much clearer.

But I don't believe that's what's happening.  My test @root node,
which is failing with this error, is supplied at the end of this
message; please help me understand why it is supposed to be invalid.
Thanks,

    - Stephen

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet ekr_test?>
<leo_file>
<leo_header file_format="2"/>
<vnodes>
<v t="sps.20100602001344.9941" a="E"><vh>#...@root</vh>
<v t="sps.20100602001344.9942"><vh>secref &gt;&gt;= definition</vh></
v>
<v t="sps.20100602001344.9943"><vh>&lt;&lt; secref &gt;&gt;</vh></v>
</v>
</vnodes>
<tnodes>
<t tx="sps.20100602001344.9941">A comment to ignore

@root-code 'root-test'

# A simple test of @root-code.
&lt;&lt; secref &gt;&gt;
@
ignored documentation
</t>
<t tx="sps.20100602001344.9942">
&lt;&lt; secref &gt;&gt;=
abc</t>
<t tx="sps.20100602001344.9943">ignored comment
@c
xyz

</t>
</tnodes>
</leo_file>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to leo-edi...@googlegroups.com.
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to