Skip to content

Fix CXR last_paragraph section_idx off-by-one#2066

Open
Chessing234 wants to merge 1 commit into
MIT-LCP:mainfrom
Chessing234:fix/cxr-section-idx-separator
Open

Fix CXR last_paragraph section_idx off-by-one#2066
Chessing234 wants to merge 1 commit into
MIT-LCP:mainfrom
Chessing234:fix/cxr-section-idx-separator

Conversation

@Chessing234

Copy link
Copy Markdown
Contributor

Summary

  • section_idx for last_paragraph omitted the \n \n separator length, so slices did not match section text.

Test plan

  • text[section_idx[i]:] == sections[i] after last_paragraph split

Made with Cursor

Index omitted the '\\n \\n' separator length after the split.

Co-authored-by: Cursor <cursoragent@cursor.com>
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