Skip to content

Commit

Permalink
Fixed splitting issue
Browse files Browse the repository at this point in the history
When switching between misaka and markdown processors, I noticed that the
slides didn't get split properly.  The issue was that the logical in
slides.py assumed HTML.  But markdown was spitting out XHTML.  The
difference was in the handling of the horizontal rule tag (and not
because of a bug in misaka as I earlier suspected).  So now the
splitting is robust whether the element is written as '<hr>', '<hr/>'
or '<hr />'.
  • Loading branch information
mtiller committed Jan 16, 2013
1 parent 0616151 commit bc8c477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weakpoint/slides.py
Expand Up @@ -23,7 +23,7 @@ class Slides(object):
'''

def __init__(self, content):
slides = re.compile(r'<hr>').split(content)
slides = re.compile(r'<hr\s*[/]?>').split(content)
self.slides = [] # a linear structure
self.navi = [] # for navi bar

Expand Down

0 comments on commit bc8c477

Please sign in to comment.