Skip to content

Commit f7ff1d2

Browse files
committed
fix: Remove the earlier workaround in the derivation of outline path
The workaround is probably masking a deeper issue where the Org elements are somehow getting corrupted due to a mix of the buffer pre-processing and later operations that happen during the export.
1 parent ace25a6 commit f7ff1d2

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

ox-hugo.el

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4427,14 +4427,7 @@ subtree-number being exported.
44274427
;; (message "[current subtree DBG] is-commented:%S, tags:%S,
44284428
;; is-excluded:%S" is-commented tags is-excluded)
44294429
(let ((title (org-element-property :title subtree))
4430-
;; FIXME: Sometimes `org-get-outline-path' returns the
4431-
;; list with empty string elements. It's not clear
4432-
;; why, but the below `cl-delete-if' workarounds works
4433-
;; (for now).
4434-
(current-outline-path (cl-delete-if
4435-
(lambda (el)
4436-
(string= el ""))
4437-
(org-get-outline-path :with-self)))
4430+
(current-outline-path (org-get-outline-path :with-self))
44384431
;; When batch-exporting subtrees, do not call
44394432
;; `org-hugo--after-all-exports-function' after each
44404433
;; subtree export. In that case, that function is

0 commit comments

Comments
 (0)