Print out the org source text also.

This commit is contained in:
Tom Alexander 2023-04-18 23:57:57 -04:00
parent cb38ffc520
commit 80afe795cd
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
1 changed files with 1 additions and 0 deletions

View File

@ -2,6 +2,7 @@
fn {name}() {{
let todo_org_path = "{path}";
let org_contents = std::fs::read_to_string(todo_org_path).expect("Read org file.");
println!("{{}}", org_contents);
let org_sexp = emacs_parse_org_document(todo_org_path).expect("Use emacs to parse org file.");
println!("{{}}", org_sexp);
let (_remaining, parsed_sexp) = sexp(org_sexp.as_str()).expect("Sexp Parse failure");