@@ -228,7 +228,7 @@ def run(self, parent, blocks):
228
228
# Any content before match is continuation of this footnote, which may be lazily indented.
229
229
before = therest [:m2 .start ()].rstrip ('\n ' )
230
230
fn_blocks [0 ] = '\n ' .join ([fn_blocks [0 ], self .detab (before )]).lstrip ('\n ' )
231
- # Add back to blocks everything from begining of match forward for next iteration.
231
+ # Add back to blocks everything from beginning of match forward for next iteration.
232
232
blocks .insert (0 , therest [m2 .start ():])
233
233
else :
234
234
# All remaining lines of block are continuation of this footnote, which may be lazily indented.
@@ -264,7 +264,7 @@ def detectTabbed(self, blocks):
264
264
# Any content before match is continuation of this footnote, which may be lazily indented.
265
265
before = block [:m .start ()].rstrip ('\n ' )
266
266
fn_blocks .append (self .detab (before ))
267
- # Add back to blocks everything from begining of match forward for next iteration.
267
+ # Add back to blocks everything from beginning of match forward for next iteration.
268
268
blocks .insert (0 , block [m .start ():])
269
269
# End of this footnote.
270
270
break
@@ -355,7 +355,7 @@ def run(self, root):
355
355
self .offset = 0
356
356
for div in root .iter ('div' ):
357
357
if div .attrib .get ('class' , '' ) == 'footnote' :
358
- # Footnotes shoul be under the first orderd list under
358
+ # Footnotes should be under the first ordered list under
359
359
# the footnote div. So once we find it, quit.
360
360
for ol in div .iter ('ol' ):
361
361
self .handle_duplicates (ol )
0 commit comments