Edward it seems that you have picked wrong version of my example file 
(which I published by mistake, and later re-uploaded). 
The mistake was in check_all_files_read_ok. Here is corrected version:
def check_all_files_read_ok():
    ok = True
    p1 = c.find_h('Core classes')[0]
    for p2 in p1.children():
        assert p2.isAtFileNode(), p2.gnx + ':' + p2.h
        fname = c.getNodeFileName(p2)
        src = g.readFileIntoUnicodeString(fname)
        analytics = analyze_lines(g.splitLines(src))
        gnxes = analytics[1].keys()
        for gnx in gnxes:
            v = c.fileCommands.gnxDict[gnx]
            if v.isAtFileNode():
                s = ''.join(body_lines_of_top_node(gnx, analytics))
            else:
                s = ''.join(body_lines_of_node(gnx, analytics))
            if s != v.b:
                g.error(gnx, v.h, fname)
                ok = False
    return ok


The difference is after line if v.isAtFileNode, else part has been added.


And on my machine it reports that all files has been read ok.

Vitalije.

-- 
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 https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to