[gnus git] branch master updated: m0-3-83-g805a2f5 =1= Tweak shr rendering of <br>

Lars Magne Ingebrigtsen <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  805a2f5d5bfe7110709d7e092c8b9427d73dc672 (commit)
      from  594a4328fc44ec2499013fc28a58f7568315d4c0 (commit)


- Log -----------------------------------------------------------------
commit 805a2f5d5bfe7110709d7e092c8b9427d73dc672
Author: Lars Magne Ingebrigtsen <[email protected]>
Date:   Mon Mar 19 14:18:36 2012 +0100

    Tweak shr rendering of <br>
    
    (shr-tag-br): Make <br> only ensure a line break instead of always
    creating a blank line.  This looks more readable in my test corpus.

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3aeb5b5..2b52a65 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -2,6 +2,8 @@
 
 	* shr.el (shr-insert): Treat non-breaking space just like normal
 	space.  This seems to produce more pleasing results.
+	(shr-tag-br): Make <br> only ensure a line break instead of always
+	creating a blank line.  This looks more readable in my test corpus.
 
 2012-03-15  Elias Pipping  <[email protected]>
 
diff --git a/lisp/shr.el b/lisp/shr.el
index e4f6bb7..f46afaa 100644
--- a/lisp/shr.el
+++ b/lisp/shr.el
@@ -1042,7 +1042,7 @@ ones, in case fg and bg are nil."
     (shr-generic cont)))
 
 (defun shr-tag-br (cont)
-  (unless (bobp)
+  (unless (bolp)
     (insert "\n")
     (shr-indent))
   (shr-generic cont))

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog |    2 ++
 lisp/shr.el    |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.