Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong paths in .ncx after epub.write #7

Open
marcelek opened this issue Dec 19, 2010 · 0 comments
Open

Wrong paths in .ncx after epub.write #7

marcelek opened this issue Dec 19, 2010 · 0 comments

Comments

@marcelek
Copy link

After changing some components.src and write to epub .opf is correct, but .ncx path are not changed. Check this:

book = Peregrin::Book.new
book = Peregrin::Epub.read('my_validate_book.epub').to_book

book.components.each do | component |
    component.src = "new_" + component.src
end

epub = Peregrin::Epub.new book
epub.write 'new_not_proper_epub.epub'

Problem is in lib/formats/epub.rb build_ncx method. xml.content(:src => chapter.src) should rather write proper content.src. Each chapter don't have to be in seperate file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant