On Mon, Jan 27, 2020 at 8:14 AM 'tfer' via leo-editor < [email protected]> wrote:
> Changing the @auto node to an @file node and manually doing the sectioning is acceptable, but we probably want to yield an at auto import to give us a result that, upon being saved, still generates a diff equivalent file to the original. Disallowing some children is a good idea, as long as that noted in the doc's. I suspect the problem might persist with @file nodes. >> In other words, the actual import machinery is probably working correctly. The problem arising in the strategy used to allocate lines to nodes. This is a tricky task. A rethink may be needed. One possibility would be to disallow child nodes in some situations... > I suspect part of the problem maybe due to some of the lines that are tagged to be nodes, (and thus be the first line of the nodes body text), actually contains a leading fragment that should be the end of the prior node's body. I have an idea for a new type of section reference that allows for the first line of its body text to be joined into the line in which it occurs. i.e. say <|section|>., or <|section>> to indicate the side of the join. Thanks for this comment. I am going to investigate this issue next. Imo, new kinds of section references aren't likely to help. The new importers always and only assign whole lines to nodes. The problem surely must be that whole lines are assigned to the wrong nodes, which is equivalent to saying that lines are misplaced. 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 view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/CAMF8tS26a2gfwGKJMMrEPeJOQjQA34rVQ0Q4BZGjtoQYwjs3_Q%40mail.gmail.com.
