##// END OF EJS Templates
minirst: mark getsections() as an internal helper
Yuya Nishihara -
r39376:b2feccc1 default
parent child Browse files
Show More
@@ -680,7 +680,7 b' def format(text, width=80, indent=0, kee'
680 680 def filtersections(blocks, section):
681 681 """Select parsed blocks under the specified section"""
682 682 parents = []
683 sections = getsections(blocks)
683 sections = _getsections(blocks)
684 684 blocks = []
685 685 i = 0
686 686 lastparents = []
@@ -728,7 +728,7 b' def filtersections(blocks, section):'
728 728
729 729 return blocks
730 730
731 def getsections(blocks):
731 def _getsections(blocks):
732 732 '''return a list of (section name, nesting level, blocks) tuples'''
733 733 nest = ""
734 734 level = 0
General Comments 0
You need to be logged in to leave comments. Login now