# HG changeset patch # User Matt Mackall # Date 2011-09-16 19:37:53 # Node ID a7e375d087f636a2d6e4e2c60593cf932313e9f4 # Parent a21ccf4412d58bdcf2451186f418594900ff15c6 minirst: fix container stripping logic diff --git a/mercurial/minirst.py b/mercurial/minirst.py --- a/mercurial/minirst.py +++ b/mercurial/minirst.py @@ -239,10 +239,10 @@ def prunecontainers(blocks, keep): # Always delete "..container:: type" block del blocks[i] j = i + i -= 1 while j < len(blocks) and blocks[j]['indent'] > indent: if prune: del blocks[j] - i -= 1 # adjust outer index else: blocks[j]['indent'] -= adjustment j += 1