Browse Source

Bufix: remove useless whitespace added after planning.

(org-add-planning-info): Bufix: remove useless whitespace
added after planning.
Bastien Guerry 6 years ago
parent
commit
badec64cbf
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/org.el

+ 2 - 1
lisp/org.el

@@ -11868,7 +11868,8 @@ be removed."
 			nil nil (list org-end-time-was-given)))
 	      (insert 
 	       (if (not (or (bolp) (eq (char-before) ?\ )
-			    (eq (char-after) ?\ ))) " " ""))
+			    (memq (char-after) '(32 10))
+			    (eobp))) " " ""))
 	      (end-of-line 1))
 	    (goto-char (point-min))
 	    (widen)