diff options
author | Ralph Amissah <ralph@amissah.com> | 2018-07-04 13:22:34 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2019-04-10 15:14:15 -0400 |
commit | ab6a0ed892cf2e63c041318b71806ecee4e31ebe (patch) | |
tree | 1117b8dfd1e3f44aee939360f131160d536edca8 /org/meta_debugs.org | |
parent | reconsider unecessary "return ref" (diff) |
decendants
Diffstat (limited to 'org/meta_debugs.org')
-rw-r--r-- | org/meta_debugs.org | 39 |
1 files changed, 27 insertions, 12 deletions
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 |