Your patch will not work for the following reasons:
1) You need to use an OrderedDict not {}
2) if a file contains an <h2> as the first element and an <h1> after it, then the <h2> will be added to the <h1> from that file instead of the the <h1> from the previous file
I have fixed both issues, but I haven't really tested my fix, so let me know if there are any problems.
|