From 2fa892d953b99a7eb121081dc37a87343d2c1003 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 28 Dec 2020 10:53:58 -0800 Subject: [PATCH] html: Fix border-right for non-square tables. Fixes: b11b5d874764 ("table: Get rid of accessor functions for 'h' and 'n' members.") --- src/output/html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/html.c b/src/output/html.c index 786d8b6e89..186b1d3f5e 100644 --- a/src/output/html.c +++ b/src/output/html.c @@ -624,7 +624,7 @@ html_output_table (struct html_driver *html, const struct table_item *item) int left = table_get_rule (t, TABLE_HORZ, x, y, &color); put_border (style, left, "left"); - if (x + colspan == t->n[V]) + if (x + colspan == t->n[H]) { int right = table_get_rule (t, TABLE_HORZ, x + colspan, y, &color); -- 2.30.2