changeset 26170 | 61124bf8485f |
parent 26157 | 65e41f388970 |
child 26237 | 1c6f7cc52da9 |
--- a/mercurial/minirst.py Fri Sep 04 05:42:21 2015 -0400 +++ b/mercurial/minirst.py Thu Sep 03 17:06:27 2015 -0400 @@ -741,7 +741,10 @@ break pointer += 1 if pointer > 1: - secs.append(('', secs[-pointer][1] + 1, [])) + blevel = secs[-pointer][1] + if section['type'] != b['type']: + blevel += 1 + secs.append(('', blevel, [])) secs[-1][2].append(b) return secs