[gnus git] branch master updated: m0-7-124-g91a1bc5 =1= Use one less than `window-width' as the width
Lars Magne Ingebrigtsen <[email protected]>
| Newsgroups | gmane.emacs.gnus.cvs |
|---|---|
| Message-ID | <[email protected]> |
via 91a1bc54b449c87ca0370ccce266243d1f771d65 (commit)
from 2e7fb7ec6bfd3d398f6fa719bd442739624c8318 (commit)
- Log -----------------------------------------------------------------
commit 91a1bc54b449c87ca0370ccce266243d1f771d65
Author: Lars Magne Ingebrigtsen <[email protected]>
Date: Tue Jun 18 17:00:54 2013 +0200
Use one less than `window-width' as the width
(shr-insert-document): Use one less than window width if `shr-width' is
nil, since otherwise things may get one character too wide.
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index baca99e..8f25af7 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -6,6 +6,8 @@
(shr-tag-dl, shr-tag-dt, shr-tag-dd): Add support for <dl>, <dt> and
<dd>.
(shr-make-table-1): Implement <td colspan=> support.
+ (shr-insert-document): Use one less than window width if `shr-width' is
+ nil, since otherwise things may get one character too wide.
2013-06-18 Katsumi Yamaoka <[email protected]>
diff --git a/lisp/shr.el b/lisp/shr.el
index 6a26c08..1cf978c 100644
--- a/lisp/shr.el
+++ b/lisp/shr.el
@@ -176,7 +176,7 @@ DOM should be a parse tree as generated by
(shr-start nil)
(shr-base nil)
(shr-preliminary-table-render 0)
- (shr-width (or shr-width (window-width))))
+ (shr-width (or shr-width (1- (window-width)))))
(shr-descend (shr-transform-dom dom))
(shr-remove-trailing-whitespace start (point))))
-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.
Summary of changes:
lisp/ChangeLog | 2 ++
lisp/shr.el | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".
The branch, master has been updated
hooks/post-receive
--
Gnus Project