diff lisp/bookmark.el @ 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 a7d43c06a61a
children fbf992fc2463
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 "    ")