shr.el (shr-remove-trailing-whitespace): Really delete the padding on too-wide lines.

This commit is contained in:
Lars Ingebrigtsen 2012-02-15 09:36:28 +00:00 committed by Katsumi Yamaoka
parent fcacfa8d51
commit 888ab66104
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

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