* net/shr.el (shr-render-td): Remove debugging.
(shr-render-td): Make width computation consistent by defaulting
all zero-width columns to 10 characters. This may not be optimal,
but it's at least consistent.
+2013-08-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
+
+ * net/shr.el (shr-render-td): Remove debugging.
+ (shr-render-td): Make width computation consistent by defaulting
+ all zero-width columns to 10 characters. This may not be optimal,
+ but it's at least consistent.
+
2013-08-06 Dmitry Antipov <dmantipov@yandex.ru>
* files.el (cache-long-line-scans): Make
shr-table-separator-length
(aref widths (+ i 1 j))))))
(setq width-column (+ width-column (1- colspan))))
+ ;; Sanity check for degenerate tables.
+ (when (zerop width)
+ (setq width 10))
(when (or column
(not fill))
- ;; Sanity check for degenerate tables.
- (when (zerop width)
- (setq width 10))
(push (shr-render-td (cdr column) width fill)
tds))
(setq i (1+ i)
(nreverse trs)))
(defun shr-render-td (cont width fill)
- (when (= width 0) (debug))
(with-temp-buffer
(let ((bgcolor (cdr (assq :bgcolor cont)))
(fgcolor (cdr (assq :fgcolor cont)))
(split-string (buffer-string) "\n")
nil
(car actual-colors))
- max)))))
+ (max max 10))))))
(defun shr-buffer-width ()
(goto-char (point-min))