lib/giblish/buildindex.rb in giblish-0.3.0 vs lib/giblish/buildindex.rb in giblish-0.3.1
- old
+ new
@@ -69,11 +69,11 @@
def generate_doc_id_info(dep_graph_exists)
largest,duplicates = get_docid_statistics
docid_info_str = if ! @manage_docid
""
else
- "The 'largest' document id found when resolving :docid: tags is *#{largest}*."
+ "The 'largest' document id found when resolving :docid: tags in all documents is *#{largest}*."
end
docid_warn_str = if duplicates.length.zero?
""
else
@@ -120,9 +120,12 @@
# build up tree of paths
root = PathTree.new
@processed_docs.each do |d|
root.add_path(d.rel_path.to_s, d)
end
+
+ # sort the tree
+ root.sort_children
# generate each tree entry string
root.traverse_top_down do |level, node|
tree_string << tree_entry_string(level, node)
end
\ No newline at end of file