[gnus git] branch master updated: m0-3-81-g7447ab3 =1= Have shr pretend that non-breaking space is normal space

Lars Magne Ingebrigtsen <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  7447ab3cef9e96e1cbf806a505ba0401caff3d2e (commit)
      from  8fe8dd766155cfe790148f4ae70db6520d582a1b (commit)


- Log -----------------------------------------------------------------
commit 7447ab3cef9e96e1cbf806a505ba0401caff3d2e
Author: Lars Magne Ingebrigtsen <[email protected]>
Date:   Mon Mar 19 13:46:15 2012 +0100

    Have shr pretend that non-breaking space is normal space
    
    * shr.el (shr-insert): Treat non-breaking space just like normal
    space.  This seems to produce more pleasing results.

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f23cf88..3aeb5b5 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2012-03-19  Lars Magne Ingebrigtsen  <[email protected]>
+
+	* shr.el (shr-insert): Treat non-breaking space just like normal
+	space.  This seems to produce more pleasing results.
+
 2012-03-15  Elias Pipping  <[email protected]>
 
 	* Makefile.in: Respect DESTDIR.
diff --git a/lisp/shr.el b/lisp/shr.el
index 2d477fd..11d0f3e 100644
--- a/lisp/shr.el
+++ b/lisp/shr.el
@@ -344,7 +344,7 @@ size, and full-buffer size."
 	       (not (bolp))
 	       (not (eq (char-after (1- (point))) ? )))
       (insert " "))
-    (dolist (elem (split-string text))
+    (dolist (elem (split-string text "[ \f\t\n\r\v ]+" t))
       (when (and (bolp)
 		 (> shr-indentation 0))
 	(shr-indent))

-----------------------------------------------------------------------
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 |    5 +++++
 lisp/shr.el    |    2 +-
 2 files changed, 6 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.