Show More
@@ -239,10 +239,10 b' def prunecontainers(blocks, keep):' | |||||
239 | # Always delete "..container:: type" block |
|
239 | # Always delete "..container:: type" block | |
240 | del blocks[i] |
|
240 | del blocks[i] | |
241 | j = i |
|
241 | j = i | |
|
242 | i -= 1 | |||
242 | while j < len(blocks) and blocks[j]['indent'] > indent: |
|
243 | while j < len(blocks) and blocks[j]['indent'] > indent: | |
243 | if prune: |
|
244 | if prune: | |
244 | del blocks[j] |
|
245 | del blocks[j] | |
245 | i -= 1 # adjust outer index |
|
|||
246 | else: |
|
246 | else: | |
247 | blocks[j]['indent'] -= adjustment |
|
247 | blocks[j]['indent'] -= adjustment | |
248 | j += 1 |
|
248 | j += 1 |
General Comments 0
You need to be logged in to leave comments.
Login now