فهرست منبع

Fix comment protection issue

* lisp/org-exp.el (org-export-handle-comments): Make sure to check
for protection in the comment line, and not in the line after it.
Carsten Dominik 15 سال پیش
والد
کامیت
a6d8eb4ea9
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      lisp/org-exp.el

+ 1 - 1
lisp/org-exp.el

@@ -1663,7 +1663,7 @@ When it is nil, all comments will be removed."
     (while (or (looking-at re)
 	       (re-search-forward re nil t))
       (setq pos (match-beginning 0))
-      (if (get-text-property (point) 'org-protected)
+      (if (get-text-property pos 'org-protected)
 	  (goto-char (1+ pos))
 	(if (and commentsp
 		 (not (equal (char-before (match-end 1)) ?+)))