Browse Source

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 years ago
parent
commit
a6d8eb4ea9
1 changed files with 1 additions and 1 deletions
  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)) ?+)))