html: Implement rotated cells.
authorBen Pfaff <blp@cs.stanford.edu>
Mon, 28 Dec 2020 22:12:34 +0000 (14:12 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 28 Dec 2020 22:12:34 +0000 (14:12 -0800)
src/output/html.c

index 78237675451fea30bae26d2e36944b43e38f52aa..8c4c14a1806b707727e49b05fb44b656818050aa 100644 (file)
@@ -647,6 +647,9 @@ html_output_table (struct html_driver *html, const struct table_item *item)
               break;
             }
 
+          if (cell.options & TAB_ROTATE)
+            put_style (&style, "writing-mode", "sideways-lr");
+
           if (cell.style->cell_style.valign != TABLE_VALIGN_TOP)
             {
               put_style (&style, "vertical-align",