shr.el (shr-find-fill-point): Don't break a line after a kinsoku-bol character if a non-breakable character follows.

This commit is contained in:
Katsumi Yamaoka 2010-12-07 01:21:09 +00:00
parent 516aa569e1
commit 6568edea53
2 changed files with 6 additions and 1 deletions

View 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

View 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))