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

Add a source pos test for list #84

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

black-desk
Copy link
Contributor

No description provided.

@black-desk
Copy link
Contributor Author

djot.js currently failed with this test case. I am working on a fix.

@black-desk
Copy link
Contributor Author

@jgm Take a look? I have no idea how to fix this right now.

para (1:4:3-2:0:4)
str (1:4:3-1:4:3) text="a"
list_item (2:2:6-3:0:9)
para (2:4:8-3:0:9)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where should this para ends? 4:0;10, 3:0:9 or 2:4:8?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say that if paragraph "a" ends at 2:0, then "b" should end at "3:0" for consistency.
Alternatively we could change things so that all paragraphs end at their last newline character or last text letter, but I think the minimal change would be the one above.

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.

2 participants