fix print preamble

This commit is contained in:
GitMatt 2025-04-28 07:34:32 -07:00
parent f2e8c63459
commit a30cee6bb9
1 changed files with 6 additions and 6 deletions

View File

@ -12,7 +12,6 @@ def get_template(template_name: str = "plan.html", plan_path: Path | None = None
templates = Environment(
loader=PackageLoader("plan"), autoescape=select_autoescape()
)
breakpoint()
template = templates.get_template(template_name)
today = datetime.today().strftime("%Y-%m-%d")
return template.render(today=today, plan_path=plan_path)
@ -40,6 +39,7 @@ def print_plan(plan_path: Path):
documentclass: extarticle
fontsize: 20pt
---
"""
preamble = subprocess.Popen(["echo", "-n", preamble], stdout=subprocess.PIPE)
cat = subprocess.Popen(