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

correct subsections extraction with .section #277

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jmasclef
Copy link

@jmasclef jmasclef commented Mar 12, 2021

subsection extract does not work

to fix, in section method replace
index = self.content.index(section) + len(section)
with
title_index = self.content.index(section) #search section title
index = self.content.index('\n',title_index ) #search next end-of-line

Sacha Vakili and others added 4 commits September 5, 2020 11:54
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