From 6c565ec5331a674ba96edf6d79695a9b6262213a Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Fri, 22 Feb 2013 14:31:05 +0100 Subject: [PATCH] org-element: Fix latex environment parsing * lisp/org-element.el (org-element-latex-environment-parser): Fix wrong value for :post-affiliated property when parsing a latex environment. --- lisp/org-element.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/org-element.el b/lisp/org-element.el index 3dc1e7226..35aa9bd93 100644 --- a/lisp/org-element.el +++ b/lisp/org-element.el @@ -1945,7 +1945,6 @@ Assume point is at the beginning of the latex environment." (org-element-paragraph-parser limit affiliated) (let* ((code-end (progn (forward-line) (point))) (begin (car affiliated)) - (post-affiliated (point)) (value (buffer-substring-no-properties code-begin code-end)) (end (progn (skip-chars-forward " \r\t\n" limit) (skip-chars-backward " \t") @@ -1956,7 +1955,7 @@ Assume point is at the beginning of the latex environment." :end end :value value :post-blank (count-lines code-end end) - :post-affiliated post-affiliated) + :post-affiliated code-begin) (cdr affiliated)))))))) (defun org-element-latex-environment-interpreter (latex-environment contents)