Compare commits

..

No commits in common. "04fe576385317a441a2ed39cd8464099f3d3e229" and "2f3c52f5f26144565c876d18a8c6de6bb95a3341" have entirely different histories.

View File

@ -109,9 +109,7 @@ def load_all(top_dir_relative):
path = os.path.join(root, name) path = os.path.join(root, name)
try: try:
doc = load_org(open(path), doc = load_org(open(path), extra_cautious=True)
environment={"org-todo-keywords": "TODO(t) NEXT(n) MEETING(m/!) Q(q) PAUSED(p!/!) EVENT(e/!) SOMETIME(s) WAITING(w@/!) TRACK(r/!) | DISCARDED(x@/!) VALIDATING(v!/!) DONE(d!/!)"},
extra_cautious=True)
docs.append(doc) docs.append(doc)
except Exception as err: except Exception as err:
import traceback import traceback
@ -738,10 +736,10 @@ def render(headline, doc, graph, headlineLevel, doc_to_headline_remapping):
content.append(render(child, doc, headlineLevel=headlineLevel+1, graph=graph, content.append(render(child, doc, headlineLevel=headlineLevel+1, graph=graph,
doc_to_headline_remapping=doc_to_headline_remapping)) doc_to_headline_remapping=doc_to_headline_remapping))
if headline.state is None or headline.state.get('name') is None: if headline.state is None:
state = "" state = ""
else: else:
state = f'<span class="state todo-{headline.is_todo} state-{headline.state["name"]}">{headline.state["name"]}</span>' state = f'<span class="state todo-{headline.is_todo} state-{headline.state}">{headline.state}</span>'
if headline.is_todo: if headline.is_todo:
todo_state = "todo" todo_state = "todo"