Skip to content
Snippets Groups Projects
Commit 339e8cf8 authored by James Vasile's avatar James Vasile
Browse files

Include todos in build strings

parent e9ed8466
No related branches found
No related tags found
No related merge requests found
...@@ -36,9 +36,12 @@ for r in regex: ...@@ -36,9 +36,12 @@ for r in regex:
def run_p(text, meta): def run_p(text, meta):
return meta.get('legacy', '') != "legacy" return meta.get('legacy', '') != "legacy"
def after_p(text, meta):
return True
def slurp_lines(fspec): def slurp_lines(fspec):
with open(fspec) as fh: with open(fspec) as fh:
return fh.read().split("\n") return fh.read().strip().split("\n")
# We're not using this func right now, but I do want to add markdown # We're not using this func right now, but I do want to add markdown
# support back in later, once I've figure out how to fit it in # support back in later, once I've figure out how to fit it in
...@@ -129,3 +132,10 @@ def run(text, meta): ...@@ -129,3 +132,10 @@ def run(text, meta):
break break
return rendered, meta return rendered, meta
def after(pdf_fname, meta):
tman = TodoManager()
meta['todos'] = tman.lines
meta['build_strings'] = meta.get('build_strings', [])
meta['build_strings'].append('todos')
return meta
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment