aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2011-01-27 10:27:51 +0000
committerKatsumi Yamaoka2011-01-27 10:27:51 +0000
commit3f39b526928624a15c3b079e3e69103ab8643bd7 (patch)
treee745609071a43291a6fb91779ec0583cd0032e2e
parentfb9464eea3875b49525e4d71900618465b7cb5fc (diff)
downloademacs-3f39b526928624a15c3b079e3e69103ab8643bd7.tar.gz
emacs-3f39b526928624a15c3b079e3e69103ab8643bd7.zip
shr.el (shr-put-color): Special-case background colours: Do put them at the blank parts at the front of the lines.
-rw-r--r--lisp/gnus/ChangeLog3
-rw-r--r--lisp/gnus/shr.el3
2 files changed, 5 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 5f20d2cfa65..1e3a1b670c9 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -4,6 +4,9 @@
4 4
52011-01-27 Lars Ingebrigtsen <larsi@gnus.org> 52011-01-27 Lars Ingebrigtsen <larsi@gnus.org>
6 6
7 * shr.el (shr-put-color): Special-case background colours: Do put them
8 at the blank parts at the front of the lines.
9
7 * gnus-draft.el (gnus-draft-clear-marks): New function to be run as an 10 * gnus-draft.el (gnus-draft-clear-marks): New function to be run as an
8 exit hook to nix out all data on readedness on group exit. 11 exit hook to nix out all data on readedness on group exit.
9 12
diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el
index 899a5defaeb..4568f45dbb5 100644
--- a/lisp/gnus/shr.el
+++ b/lisp/gnus/shr.el
@@ -612,7 +612,8 @@ ones, in case fg and bg are nil."
612 (save-excursion 612 (save-excursion
613 (goto-char start) 613 (goto-char start)
614 (while (< (point) end) 614 (while (< (point) end)
615 (when (bolp) 615 (when (and (bolp)
616 (not (eq type :background)))
616 (skip-chars-forward " ")) 617 (skip-chars-forward " "))
617 (when (> (line-end-position) (point)) 618 (when (> (line-end-position) (point))
618 (shr-put-color-1 (point) (min (line-end-position) end) type color)) 619 (shr-put-color-1 (point) (min (line-end-position) end) type color))