Hi Jack,

I can confirm the behavior you describe -- it does look like a bug. As Terry stated, though, Edward knows way more about clones than others, and perhaps he can shed some light.

I did find a workaround that makes everything work as expected, though:

@file /tmp/a.file
    headlineA
        << sectionX >>
    headlineB
        << sectionX >>
        << sectionY >>

In the '@file' node, use this body text:

@others

(I.e. remove the << sectionY >> reference.)

In the 'headlineB' body text, use this:

@all

This maintains proper clone structure on reload. I think this workaround should generalize to cloned << sections >> in general.

Hope this helps!
-->Jake

On 1/5/2014 9:26 PM, Jack Kuan wrote:
Hi,

I have a @file node that's structured like this:

@file /tmp/a.file
      headlineA
         << sectionX >>
      headlineB
         << sectionX >>
         << sectionY >>

The << sectionX >> nodes are clones of each other.

@file /tmp/a.file node's body:
@others
<< sectionY >>

headlineA's body:
This is node A
<< sectionX >>

headlineB's body is empty.


After saving the leo file, it correctly created the a.file. However, reloading the leo file I get this new outline:

@file /tmp/a.file
      headlineA
         << sectionX >>
      headlineB
         << sectionY >>
      headlineB
         << sectionY >>

<< sectionX >> is no longer a clone. The two headlineB nodes are now clones of each other.

So, my question is..., is this use case of clones within a @file node not allowed? Or how should I organize my outline to make it work?

Thanks
Jack
--
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.

--
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.

Reply via email to