|
@@ -370,7 +370,7 @@ class Wikicode(StringMixIn): |
|
|
if self.nodes[i] in headings: |
|
|
if self.nodes[i] in headings: |
|
|
this = self.nodes[i].level |
|
|
this = self.nodes[i].level |
|
|
for (level, start) in buffers: |
|
|
for (level, start) in buffers: |
|
|
if not flat or this <= level: |
|
|
|
|
|
|
|
|
if this <= level: |
|
|
buffers.remove((level, start)) |
|
|
buffers.remove((level, start)) |
|
|
sections.append(Wikicode(self.nodes[start:i])) |
|
|
sections.append(Wikicode(self.nodes[start:i])) |
|
|
buffers.append((this, i)) |
|
|
buffers.append((this, i)) |
|
|