diff --git a/origami-parsers.el b/origami-parsers.el index 87c704f..ff0aea6 100644 --- a/origami-parsers.el +++ b/origami-parsers.el @@ -135,7 +135,7 @@ position in the CONTENT." ((equal (caar positions) close) (if beg (progn ;close with no children - (setq acc (cons (funcall create beg (cdar positions) (length close) nil) + (setq acc (cons (funcall create beg (cdar positions) (length open) nil) acc)) (setq positions (cdr positions)) (setq beg nil))