]> git.eshelyaron.com Git - emacs.git/commitdiff
(bookmark-show-all-annotations):
authorThien-Thi Nguyen <ttn@gnuvola.org>
Tue, 17 Jul 2007 16:10:13 +0000 (16:10 +0000)
committerThien-Thi Nguyen <ttn@gnuvola.org>
Tue, 17 Jul 2007 16:10:13 +0000 (16:10 +0000)
Make sure each inserted annotation ends with newline.

lisp/bookmark.el

index 3c1469fef9739159712cbdc975889c097b0c792d..816ed8b182e22d04e3e11e043a78ce0a4920eb1c 100644 (file)
@@ -1794,7 +1794,8 @@ if an annotation exists."
          (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 "    ")