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

Importing dialogue md fails if chapter pages start from anything other than 1 #166

Open
nikitalita opened this issue Jan 6, 2024 · 0 comments
Milestone

Comments

@nikitalita
Copy link
Contributor

Consider an exported dialog like this:
image

import() extracts the literal page numbers like so:
image

The problem is that the literal number (-1) gets used as an index into the chapter pages, which starts from 0:

image image

So, the page being extracted ends up as NaN, and we end up with this:

image

Not quite sure how to fix this.

@ChiriVulpes ChiriVulpes added this to the 1.1.0 milestone Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants