summaryrefslogtreecommitdiff
path: root/lisp/gnus
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2012-02-15 09:36:28 +0000
committerKatsumi Yamaoka <yamaoka@jpl.org>2012-02-15 09:36:28 +0000
commit888ab66104667346aff8a1569b924fe92daac7e2 (patch)
tree2f755177d1a6352a48aa042d51a40c6287e0efbd /lisp/gnus
parentfcacfa8d51757d43e0934f59524924f20518e3e9 (diff)
downloademacs-888ab66104667346aff8a1569b924fe92daac7e2.tar.gz
shr.el (shr-remove-trailing-whitespace): Really delete the padding on too-wide lines.
Diffstat (limited to 'lisp/gnus')
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/shr.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 59796c9df4f..9ac21e5a33e 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
+2012-02-15 Lars Ingebrigtsen <larsi@gnus.org>
+
+ * shr.el (shr-remove-trailing-whitespace): Really delete the padding on
+ too-wide lines.
+
2012-02-15 Paul Eggert <eggert@cs.ucla.edu>
* shr.el (shr-rescale-image): Undo previous change; see
diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el
index a8bbc77a4b1..f3d75032926 100644
--- a/lisp/gnus/shr.el
+++ b/lisp/gnus/shr.el
@@ -160,7 +160,7 @@ DOM should be a parse tree as generated by
(goto-char start)
(while (not (eobp))
(end-of-line)
- (when (> (current-column) width)
+ (when (> (shr-previous-newline-padding-width (current-column)) width)
(dolist (overlay (overlays-at (point)))
(when (overlay-get overlay 'before-string)
(overlay-put overlay 'before-string nil))))