Browse Source

Bugfix: Do not check for protection at the end of the line.

The end of the last line of a colon example is not protected, and this
caused the time stamp removal protection to fail if a time stamp was
the last thing in such an example.
Carsten Dominik 16 years ago
parent
commit
91f5006502
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lisp/org-exp.el

+ 1 - 0
lisp/org-exp.el

@@ -1854,6 +1854,7 @@ from the buffer."
 (defun org-export-remove-timestamps ()
   "Remove timestamps and keywords for export."
   (while (re-search-forward org-maybe-keyword-time-regexp nil t)
+    (backward-char 1)
     (org-if-unprotected
      (replace-match "")
      (beginning-of-line 1)