html: Fix border-right for non-square tables.
authorBen Pfaff <blp@cs.stanford.edu>
Mon, 28 Dec 2020 18:53:58 +0000 (10:53 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 28 Dec 2020 18:55:59 +0000 (10:55 -0800)
Fixes: b11b5d874764 ("table: Get rid of accessor functions for 'h' and 'n' members.")
src/output/html.c

index 786d8b6e89842e7499a8a1eed9d6aaae3ac3185b..186b1d3f5eefeee4a19edc134644ab18263995e8 100644 (file)
@@ -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);