summaryrefslogtreecommitdiff
path: root/lisp/bookmark.el
diff options
context:
space:
mode:
authorThien-Thi Nguyen <ttn@gnuvola.org>2007-07-17 16:10:13 +0000
committerThien-Thi Nguyen <ttn@gnuvola.org>2007-07-17 16:10:13 +0000
commit23fe28f248284aeaefc144cbe6fbd3884992f938 (patch)
tree7a7526fc0252ad646fd16f7d860a7a3f9c3c101b /lisp/bookmark.el
parent73770b0319301feeb63a9f29f9e108d94ccb4ff9 (diff)
downloademacs-23fe28f248284aeaefc144cbe6fbd3884992f938.tar.gz
(bookmark-show-all-annotations):
Make sure each inserted annotation ends with newline.
Diffstat (limited to 'lisp/bookmark.el')
-rw-r--r--lisp/bookmark.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/bookmark.el b/lisp/bookmark.el
index 3c1469fef97..816ed8b182e 100644
--- a/lisp/bookmark.el
+++ b/lisp/bookmark.el
@@ -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 " ")