forked from kenkeiras/org-rw
fix: On OrgDoc.get_code_snippets, consider headlines of all levels.
This commit is contained in:
parent
5019b44dd5
commit
1dc6eb0b43
@ -2338,7 +2338,7 @@ class OrgDoc:
|
||||
yield hl
|
||||
|
||||
def get_code_snippets(self):
|
||||
for headline in self.headlines:
|
||||
for headline in self.getAllHeadlines():
|
||||
yield from headline.get_code_snippets()
|
||||
|
||||
# Writing
|
||||
|
Loading…
Reference in New Issue
Block a user