Truncate max_width for renderTable
Bug-Debian: https://github.com/tats/w3m/issues/25
This commit is contained in:
@@ -1723,6 +1723,10 @@ renderTable(struct table *t, int max_width, struct html_feed_environ *h_env)
|
|||||||
if (max_width < rulewidth)
|
if (max_width < rulewidth)
|
||||||
max_width = rulewidth;
|
max_width = rulewidth;
|
||||||
|
|
||||||
|
#define MAX_TABWIDTH 10000
|
||||||
|
if (max_width > MAX_TABWIDTH)
|
||||||
|
max_width = MAX_TABWIDTH;
|
||||||
|
|
||||||
check_maximum_width(t);
|
check_maximum_width(t);
|
||||||
|
|
||||||
#ifdef MATRIX
|
#ifdef MATRIX
|
||||||
|
|||||||
Reference in New Issue
Block a user