Don't break lines between punctuation and non-punctuation
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 31 Oct 2010 16:25:37 +0000 (17:25 +0100)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 31 Oct 2010 16:25:37 +0000 (17:25 +0100)
(Line after the apostrophe in "'We").

lisp/ChangeLog
lisp/shr.el

index 8aa8a63..2db942d 100644 (file)
@@ -1,5 +1,8 @@
 2010-10-31  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
 2010-10-31  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * shr.el (shr-find-fill-point): Don't break lines between punctuation
+       and non-punctuation (like after the apostrophe in "'We").
+
        * gnus-sum.el (gnus-summary-select-article): Make sure
        gnus-original-article-buffer is alive.
 
        * gnus-sum.el (gnus-summary-select-article): Make sure
        gnus-original-article-buffer is alive.
 
index d724735..c39dd05 100644 (file)
@@ -286,7 +286,9 @@ redirects somewhere else."
                            (aref (char-category-set (following-char)) ?>)))
                  (backward-char 1))
              (while (and (>= (setq count (1- count)) 0)
                            (aref (char-category-set (following-char)) ?>)))
                  (backward-char 1))
              (while (and (>= (setq count (1- count)) 0)
-                         (aref (char-category-set (following-char)) ?>))
+                         (aref (char-category-set (following-char)) ?>)
+                         (aref fill-find-break-point-function-table
+                               (following-char)))
                (forward-char 1)))
            (when (eq (following-char) ? )
              (forward-char 1))
                (forward-char 1)))
            (when (eq (following-char) ? )
              (forward-char 1))