From ab6a0ed892cf2e63c041318b71806ecee4e31ebe Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 4 Jul 2018 13:22:34 -0400 Subject: decendants --- org/meta_debugs.org | 39 +++++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 12 deletions(-) (limited to 'org/meta_debugs.org') diff --git a/org/meta_debugs.org b/org/meta_debugs.org index e34a95c..8542a32 100644 --- a/org/meta_debugs.org +++ b/org/meta_debugs.org @@ -115,18 +115,18 @@ debug(dumpdoc) { __FILE__, __LINE__, ); - if (key.length > 0) { - foreach (obj; contents[key]) { - if (obj.metainfo.is_of_part != "empty") { - writefln( - "[%s][%s]\n%s", - obj.object_number, - obj.metainfo.is_a, - obj.text - ); - } - } - } + // if (key.length > 0) { + // foreach (obj; contents[key]) { + // if (obj.metainfo.is_of_part != "empty") { + // writefln( + // "[%s][%s]\n%s", + // obj.object_number, + // obj.metainfo.is_a, + // obj.text + // ); + // } + // } + // } } #+END_SRC @@ -362,6 +362,21 @@ debug(toc_nav_dom) { } #+END_SRC +*** decendants + +#+name: meta_output_debugs +#+BEGIN_SRC d +debug(decendants) { + foreach (sect; doc_matters.xml.keys_seq.scroll) { + foreach (obj; contents[sect]) { + if (obj.metainfo.is_a == "heading") { + writeln(obj.metainfo.ocn, " .. ", obj.metainfo.last_decendant_ocn); + } + } + } +} +#+END_SRC + *** endnotes_section (seg & scroll) :endnotes: **** endnotes -- cgit v1.2.3