[gnus git] branch master updated: m0-3-107-g2dcbc9a =1= shr.el (shr-find-fill-point): Don't break a line before kinsoku-bol characters.

Katsumi Yamaoka <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  2dcbc9ada5ed5213959b54678a333e5d7ad4d4f8 (commit)
      from  840686ad5fde9d9ab16f57d989e7e19e0e352f99 (commit)


- Log -----------------------------------------------------------------
commit 2dcbc9ada5ed5213959b54678a333e5d7ad4d4f8
Author: Katsumi Yamaoka <[email protected]>
Date:   Mon Apr 2 09:11:52 2012 +0000

    shr.el (shr-find-fill-point): Don't break a line before kinsoku-bol characters.

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 54930b3..5e14048 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2012-04-02  Katsumi Yamaoka  <[email protected]>
+
+	* shr.el (shr-find-fill-point): Don't break a line before kinsoku-bol
+	characters.
+
 2012-03-27  Katsumi Yamaoka  <[email protected]>
 
 	* gnus-sync.el (gnus-topic-alist, gnus-group-topic)
diff --git a/lisp/shr.el b/lisp/shr.el
index b0cbc1b..4ee573f 100644
--- a/lisp/shr.el
+++ b/lisp/shr.el
@@ -461,6 +461,13 @@ size, and full-buffer size."
 	       (if (looking-at "\\(\\c<+\\)\\c<")
 		   (goto-char (match-end 1))
 		 (forward-char 1)))))
+	((shr-char-kinsoku-bol-p (following-char))
+	 ;; Find forward the point where kinsoku-bol characters end.
+	 (let ((count 4))
+	   (while (and (>= (setq count (1- count)) 0)
+		       (shr-char-kinsoku-bol-p (following-char))
+		       (shr-char-breakable-p (following-char)))
+	     (forward-char 1))))
 	(t
 	 (if (shr-char-kinsoku-bol-p (preceding-char))
 	     ;; There are consecutive kinsoku-bol characters.

-----------------------------------------------------------------------
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    |    7 +++++++
 2 files changed, 12 insertions(+), 0 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.