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

Fixed manifest writer to include properties attribute. #31

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

MichaelFenwick
Copy link

After writing an epub, the manifest would end up with a #nav item which lacked a properties attribute. That is, the manifest item

<item href="nav.xhtml" id="nav" media-type="application/xhtml+xml" properties="nav"/>

would be written as

<item id="nav" href="nav.xhtml" media-type="application/xhtml+xml"/>

This is problematic as the manifest reader uses that attribute to identify the nav item, preventing a written book from being read again (an exception would be thrown if reading was attempted). This change ensures that the properties attribute is written to each manifest element if it has a value, resolving this problem.

After writing an epub, the manifest would end up with a `#nav` item which lacked a `properties` attribute. That is, the manifest item

`<item href="nav.xhtml" id="nav" media-type="application/xhtml+xml" properties="nav"/>`

would be written as

`<item id="nav" href="nav.xhtml" media-type="application/xhtml+xml"/>`

This is problematic as the manifest reader uses that attribute to identify the nav item, preventing a written book from being read again (an exception would be thrown if reading was attempted). This change ensures that the `properties` attribute is written to each manifest element if it has a value, resolving this problem.
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

Successfully merging this pull request may close these issues.

1 participant