lib/metanorma/collection.rb in metanorma-1.7.6 vs lib/metanorma/collection.rb in metanorma-1.7.7

- old
+ new

@@ -37,10 +37,11 @@ @coverpage = Util::hash_key_detect(@directives, "coverpage", @coverpage) @coverpage_style = Util::hash_key_detect(@directives, "coverpage-style", @coverpage_style) @documents = args[:documents] || {} @bibdatas = args[:documents] || {} - if @documents.any? && !@directives.include?("documents-inline") + if (@documents.any? || @manifest) && + (%w(documents-inline documents-external) & @directives).empty? @directives << "documents-inline" end @documents.merge! @manifest.documents(@dirname) @bibdatas.merge! @manifest.documents(@dirname) @documents.transform_keys { |k| Util::key(k) }