Skip to content

Commit

Permalink
Close #5
Browse files Browse the repository at this point in the history
  • Loading branch information
ryul1206 committed Jul 2, 2021
1 parent 7a0fc25 commit ae4dc5a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mmgcli/single_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ def write(self, oneline, codeblock_mark):
self.append_toc(head, result.end() - 1)

def append_toc(self, head, level):
# if (self.prev_level + 1) == level: # new child
if self.prev_level < level: # new child
if (self.prev_level + 1) == level: # new child
pass
elif self.prev_level == level: # same level
self.toc_stack = self.toc_stack[:-1]
Expand Down

0 comments on commit ae4dc5a

Please sign in to comment.