diff options
author | Juri Linkov <juri@jurta.org> | 2012-12-04 01:38:56 +0200 |
---|---|---|
committer | Juri Linkov <juri@jurta.org> | 2012-12-04 01:38:56 +0200 |
commit | 68bf4e0964f28642ec035e5ebd0b4c567bb9f739 (patch) | |
tree | 29d4d9b8cee6c0a81f32994fdd94365e34db9e84 | |
parent | 26163acc7ab519baa444f842f26f2199512a6889 (diff) | |
download | emacs-68bf4e0964f28642ec035e5ebd0b4c567bb9f739.tar.gz |
* lisp/info.el (Info-fontify-node): Don't hide the last newline.
Fixes: debbugs:12272
-rw-r--r-- | lisp/ChangeLog | 5 | ||||
-rw-r--r-- | lisp/info.el | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index eb41fff8c9a..6154c25e6db 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-12-03 Juri Linkov <juri@jurta.org> + + * info.el (Info-fontify-node): Don't hide the last newline. + (Bug#12272) + 2012-12-01 Leo Liu <sdl.web@gmail.com> * files.el (dir-locals-read-from-file): Check file non-empty diff --git a/lisp/info.el b/lisp/info.el index 36ffa806f04..1e15dcbc9a0 100644 --- a/lisp/info.el +++ b/lisp/info.el @@ -4826,8 +4826,8 @@ first line or header line, and for breadcrumb links.") ;; Hide empty lines at the end of the node. (goto-char (point-max)) (skip-chars-backward "\n") - (when (< (1+ (point)) (point-max)) - (put-text-property (1+ (point)) (point-max) 'invisible t)) + (when (< (point) (1- (point-max))) + (put-text-property (point) (1- (point-max)) 'invisible t)) (set-buffer-modified-p nil)))) |