diff options
| author | Katsumi Yamaoka | 2010-12-07 01:21:09 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-12-07 01:21:09 +0000 |
| commit | 6568edea53db356657f44670573dfb046391c6ed (patch) | |
| tree | a076529851699970553b4e55760790dad67d2791 | |
| parent | 516aa569e1d70d51ae1d8d12a4b2e7281156cb8c (diff) | |
| download | emacs-6568edea53db356657f44670573dfb046391c6ed.tar.gz emacs-6568edea53db356657f44670573dfb046391c6ed.zip | |
shr.el (shr-find-fill-point): Don't break a line after a kinsoku-bol character if a non-breakable character follows.
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/shr.el | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 0e34fbc5f64..c0446207028 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-12-07 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * shr.el (shr-find-fill-point): Don't break a line after a kinsoku-bol | ||
| 4 | character if a non-breakable character follows. | ||
| 5 | |||
| 1 | 2010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org> | 6 | 2010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 7 | ||
| 3 | * proto-stream.el (proto-stream-open-tls): Return nil if we don't get | 8 | * proto-stream.el (proto-stream-open-tls): Return nil if we don't get |
diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el index fafe3d94dea..4f3af112a32 100644 --- a/lisp/gnus/shr.el +++ b/lisp/gnus/shr.el | |||
| @@ -304,8 +304,8 @@ redirects somewhere else." | |||
| 304 | (if (eq (preceding-char) ?') | 304 | (if (eq (preceding-char) ?') |
| 305 | (not (memq (char-after (- (point) 2)) | 305 | (not (memq (char-after (- (point) 2)) |
| 306 | (list nil ?\n ? ))) | 306 | (list nil ?\n ? ))) |
| 307 | ;; There're some kinsoku CJK chars that aren't breakable. | ||
| 308 | (and (shr-char-kinsoku-bol-p (preceding-char)) | 307 | (and (shr-char-kinsoku-bol-p (preceding-char)) |
| 308 | (shr-char-breakable-p (following-char)) | ||
| 309 | (not (shr-char-kinsoku-bol-p (following-char))))) | 309 | (not (shr-char-kinsoku-bol-p (following-char))))) |
| 310 | (shr-char-kinsoku-eol-p (following-char)))) | 310 | (shr-char-kinsoku-eol-p (following-char)))) |
| 311 | (backward-char 1)) | 311 | (backward-char 1)) |