From d180631686d3d200eec01f8b459f0437177d5b40 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Wed, 19 May 2010 18:03:50 +0200 Subject: [PATCH] Fix empty-line problem after repeating entry Tom writes: > if I have a heading like this: > > > ** TODO test task > stuff > SCHEDULED: <2010-05-15 Sat 07:35 +1d> > > > Then an empty line is inserted below the heading (before "stuff") if > org-indent-mode is on and logging is set like this: > > > (setq org-log-repeat nil) > (setq org-log-done 'time) > > > > I tested it with a clean config using only the settings above. --- lisp/ChangeLog | 3 +++ lisp/org.el | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 168f1cb7e..8f76d8e42 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2010-05-19 Carsten Dominik + * org.el (org-add-planning-info): Remove the empty line also + if there is no whitespace at all in there. + * org-table.el (org-table-align): Fix alignment of strings with invisible characters. diff --git a/lisp/org.el b/lisp/org.el index 4ede91f1c..dc4dfacf5 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -11360,7 +11360,7 @@ be removed." (end-of-line 1)) (goto-char (point-min)) (widen) - (if (and (looking-at "[ \t]+\n") + (if (and (looking-at "[ \t]*\n") (equal (char-before) ?\n)) (delete-region (1- (point)) (point-at-eol))) ts))))))