Commit 68d25dee authored by KitaitiMakoto's avatar KitaitiMakoto

Set Package#rootfile earlier

parent fce97cf9
Pipeline #18733873 passed with stage
in 3 minutes and 27 seconds
......@@ -113,11 +113,11 @@ module EPUB
def make_package
package = Publication::Package.new
package.book = self
no_package_rootfile = rootfiles.find {|rf| rf.package.nil?}
no_package_rootfile.package = package if no_package_rootfile
package.make do |package|
yield package if block_given?
end
no_package_rootfile = rootfiles.find {|rf| rf.package.nil?}
no_package_rootfile.package = package if no_package_rootfile
package
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment