Format the ast.

This commit is contained in:
Tom Alexander 2023-03-19 14:21:02 -04:00
parent 33a69fbe0e
commit 6a0dc2fc62
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -1,6 +1,9 @@
(defun org-dump-ast (outpath) (defun org-dump-ast (outpath)
(let (let
((parsed-tree (format "%s" (org-element-parse-buffer)))) (
;; (parsed-tree (format "%s" (org-element-parse-buffer)))
(parsed-tree (pp-to-string (org-element-parse-buffer)))
)
(with-temp-file outpath (with-temp-file outpath
(insert parsed-tree) (insert parsed-tree)
) )