From: Lars Magne Ingebrigtsen Date: Sun, 3 Oct 2010 13:18:59 +0000 (+0200) Subject: Don't insert newlines on empty tags at the beginning of the buffer. X-Git-Url: https://cgit.sxemacs.org/?p=gnus;a=commitdiff_plain;h=6a00fb5a73ddfcb1bf71a7a906fd4ba0c2e2aea9 Don't insert newlines on empty tags at the beginning of the buffer. --- 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))