From 6a00fb5a73ddfcb1bf71a7a906fd4ba0c2e2aea9 Mon Sep 17 00:00:00 2001 From: Lars Magne Ingebrigtsen Date: Sun, 3 Oct 2010 15:18:59 +0200 Subject: [PATCH] Don't insert newlines on empty tags at the beginning of the buffer. --- lisp/shr.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/shr.el b/lisp/shr.el index 7af1945f9..ccb77649f 100644 --- a/lisp/shr.el +++ b/lisp/shr.el @@ -94,7 +94,8 @@ fit these criteria." (shr-ensure-newline) (insert "\n")) (shr-generic cont) - (insert "\n")) + (unless (bobp) + (insert "\n"))) (defun shr-tag-b (cont) (shr-fontize-cont cont 'bold)) -- 2.25.1