changeset 81899:f10b72da2fb4

(bookmark-show-all-annotations): Make sure each inserted annotation ends with newline.
author Thien-Thi Nguyen <ttn@gnuvola.org>
date Mon, 16 Jul 2007 02:16:00 +0000
parents c363dc984506
children 39d8b226d67f
files lisp/bookmark.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/bookmark.el	Sun Jul 15 22:15:38 2007 +0000
+++ b/lisp/bookmark.el	Mon Jul 16 02:16:00 2007 +0000
@@ -1816,7 +1816,8 @@
          (if (and ann (not (string-equal ann "")))
              ;; insert the annotation, indented by 4 spaces.
              (progn
-               (save-excursion (insert ann))
+               (save-excursion (insert ann) (unless (bolp)
+                                              (insert "\n")))
                (while (< (point) (point-max))
                  (beginning-of-line) ; paranoia
                  (insert "    ")