diff options
| author | Lars Ingebrigtsen | 2013-12-25 18:31:39 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2013-12-25 18:31:39 +0100 |
| commit | 99e4926fcbee9f7e75ed19b194fa7a2aa59c98c1 (patch) | |
| tree | bbfc0cb05c9127d659a0492683047470edbab2d5 | |
| parent | 9ab3ce4d2f1c6409d36072192bfce797ec189837 (diff) | |
| download | emacs-99e4926fcbee9f7e75ed19b194fa7a2aa59c98c1.tar.gz emacs-99e4926fcbee9f7e75ed19b194fa7a2aa59c98c1.zip | |
Fold shr text with single quotation marks better
* net/shr.el (shr-find-fill-point): Don't break lines before a
quotation mark.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/net/shr.el | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 19d14f69017..b1a76998639 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-12-25 Lars Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * net/shr.el (shr-find-fill-point): Don't break lines before a | ||
| 4 | quotation mark. | ||
| 5 | |||
| 1 | 2013-12-25 Kenjiro NAKAYAMA <nakayamakenjiro@gmail.com> | 6 | 2013-12-25 Kenjiro NAKAYAMA <nakayamakenjiro@gmail.com> |
| 2 | 7 | ||
| 3 | * net/eww.el (eww-form-textarea): Use a different face for | 8 | * net/eww.el (eww-form-textarea): Use a different face for |
diff --git a/lisp/net/shr.el b/lisp/net/shr.el index 5c30bd8ac67..bb7b7106c7b 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el | |||
| @@ -550,7 +550,8 @@ size, and full-buffer size." | |||
| 550 | (if (looking-at "\\(\\c<+\\)\\c<") | 550 | (if (looking-at "\\(\\c<+\\)\\c<") |
| 551 | (goto-char (match-end 1)) | 551 | (goto-char (match-end 1)) |
| 552 | (forward-char 1)))) | 552 | (forward-char 1)))) |
| 553 | ((shr-char-kinsoku-bol-p (following-char)) | 553 | ((and (shr-char-kinsoku-bol-p (following-char)) |
| 554 | (not (eq (following-char) ?'))) | ||
| 554 | ;; Find forward the point where kinsoku-bol characters end. | 555 | ;; Find forward the point where kinsoku-bol characters end. |
| 555 | (let ((count 4)) | 556 | (let ((count 4)) |
| 556 | (while (progn | 557 | (while (progn |