shr.el (shr-find-fill-point): Don't break a line after a kinsoku-bol character if...
authorKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 7 Dec 2010 01:18:41 +0000 (01:18 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 7 Dec 2010 01:18:41 +0000 (01:18 +0000)
lisp/ChangeLog
lisp/shr.el

index a4bbf35..bb4f914 100644 (file)
@@ -1,3 +1,8 @@
+2010-12-07  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * shr.el (shr-find-fill-point): Don't break a line after a kinsoku-bol
+       character if a non-breakable character follows.
+
 2010-12-06  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * proto-stream.el (proto-stream-open-tls): Return nil if we don't get
index fafe3d9..4f3af11 100644 (file)
@@ -304,8 +304,8 @@ redirects somewhere else."
                    (if (eq (preceding-char) ?')
                        (not (memq (char-after (- (point) 2))
                                   (list nil ?\n ? )))
-                     ;; There're some kinsoku CJK chars that aren't breakable.
                      (and (shr-char-kinsoku-bol-p (preceding-char))
+                          (shr-char-breakable-p (following-char))
                           (not (shr-char-kinsoku-bol-p (following-char)))))
                    (shr-char-kinsoku-eol-p (following-char))))
       (backward-char 1))