aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2015-01-26 16:35:51 +1100
committerLars Magne Ingebrigtsen2015-01-26 16:35:51 +1100
commit776705f49c5cb4e66c7dcb316fe499aa6a183888 (patch)
treebdb1903522baf3397d9548c988560b3b9cb8c019
parentdafb0ef852f88f535df5527def7516a13bf63c60 (diff)
downloademacs-776705f49c5cb4e66c7dcb316fe499aa6a183888.tar.gz
emacs-776705f49c5cb4e66c7dcb316fe499aa6a183888.zip
(shr-make-table-1): Add comments.
-rw-r--r--lisp/ChangeLog1
-rw-r--r--lisp/net/shr.el16
2 files changed, 12 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8af0ec46cad..1bb003c9205 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,6 +1,7 @@
12015-01-26 Lars Ingebrigtsen <larsi@gnus.org> 12015-01-26 Lars Ingebrigtsen <larsi@gnus.org>
2 2
3 * net/shr.el (shr-make-table-1): Fix colspan typo. 3 * net/shr.el (shr-make-table-1): Fix colspan typo.
4 (shr-make-table-1): Add comments.
4 5
5 * net/eww.el (eww-add-bookmark): Fix prompt and clean up the code 6 * net/eww.el (eww-add-bookmark): Fix prompt and clean up the code
6 slightly. 7 slightly.
diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index a0c9eba4144..f4c765f4d25 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -1667,11 +1667,17 @@ The preference is a float determined from `shr-prefer-media-type'."
1667 ;; remaining columns. 1667 ;; remaining columns.
1668 (- (length widths) i))) 1668 (- (length widths) i)))
1669 (dotimes (j (1- colspan)) 1669 (dotimes (j (1- colspan))
1670 (if (> (+ i 1 j) (1- (length widths))) 1670 (setq width
1671 (setq width (aref widths (1- (length widths)))) 1671 (if (> (+ i 1 j) (1- (length widths)))
1672 (setq width (+ width 1672 ;; If we have a colspan spec that's longer
1673 shr-table-separator-length 1673 ;; than the table is wide, just use the last
1674 (aref widths (+ i 1 j)))))) 1674 ;; width as the width.
1675 (aref widths (1- (length widths)))
1676 ;; Sum up the widths of the columns we're
1677 ;; spanning.
1678 (+ width
1679 shr-table-separator-length
1680 (aref widths (+ i 1 j))))))
1675 (setq width-column (+ width-column (1- colspan)))) 1681 (setq width-column (+ width-column (1- colspan))))
1676 (when (or column 1682 (when (or column
1677 (not fill)) 1683 (not fill))