浏览代码

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.
Nicolas Goaziou 12 年之前
父节点
当前提交
6c565ec533
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      lisp/org-element.el

+ 1 - 2
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)