Skip to content

Commit

Permalink
Update spec_splitter.py
Browse files Browse the repository at this point in the history
tweaked because it should break on multi-break not ignore it
  • Loading branch information
stevefaulkner committed May 10, 2013
1 parent 62d3c4f commit 5f8dd08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec_splitter.py
Expand Up @@ -207,7 +207,7 @@ def add_class(e, cls):
# Keep copying stuff from the front of the source document into this
# page, until we find the first heading that isn't class="no-toc"
for e in child_iter:
if (e.getnext().tag == 'h2' and 'no-toc' not in (e.getnext().get('class') or '').split(' ')) or (e.getnext().tag == 'span' and 'mutli-break' not in (e.getnext().get('class') or '').split(' ')):
if (e.getnext().tag == 'h2' and 'no-toc' not in (e.getnext().get('class') or '').split(' ')) or (e.getnext().tag == 'span' and 'mutli-break' in (e.getnext().get('class') or '').split(' ')):
break
page_body.append(e)

Expand Down

0 comments on commit 5f8dd08

Please sign in to comment.