From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14615 invoked from network); 9 Sep 2021 14:47:57 -0000 Received: from bsd.lv (HELO mandoc.bsd.lv) (66.111.2.12) by inbox.vuxu.org with ESMTPUTF8; 9 Sep 2021 14:47:57 -0000 Received: from fantadrom.bsd.lv (localhost [127.0.0.1]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id 864c6024 for ; Thu, 9 Sep 2021 09:47:55 -0500 (EST) Received: from localhost (mandoc.bsd.lv [local]) by mandoc.bsd.lv (OpenSMTPD) with ESMTPA id 8588ac41 for ; Thu, 9 Sep 2021 09:47:55 -0500 (EST) Date: Thu, 9 Sep 2021 09:47:55 -0500 (EST) X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: mandoc: If the layout or data of an individual cell in a tbl(7) contains X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-ID: Log Message: ----------- If the layout or data of an individual cell in a tbl(7) contains only "_", "-", or "=", requesting a horizontal line to be drawn across the middle of the cell, print
in that cell in HTML output. That is arguably slightly ugly because HTML 5 regards
as semantic markup, meaning "thematic break". If somebody knowns a better way to render a horizontal line across the middle of a table cell with pure HTML and CSS, and without implying a specific meaning, please tell me. Missing feature reported by . Modified Files: -------------- mandoc: html.h html.c tbl_html.c Revision Data ------------- Index: html.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/html.c,v retrieving revision 1.274 retrieving revision 1.275 diff -Lhtml.c -Lhtml.c -u -p -r1.274 -r1.275 --- html.c +++ html.c @@ -91,6 +91,7 @@ static const struct htmldata htmltags[TA {"span", HTML_INPHRASE | HTML_TOPHRASE}, {"var", HTML_INPHRASE | HTML_TOPHRASE}, {"br", HTML_INPHRASE | HTML_NOSTACK | HTML_NLALL}, + {"hr", HTML_INPHRASE | HTML_NOSTACK}, {"mark", HTML_INPHRASE }, {"math", HTML_INPHRASE | HTML_NLALL | HTML_INDENT}, {"mrow", 0}, Index: html.h =================================================================== RCS file: /home/cvs/mandoc/mandoc/html.h,v retrieving revision 1.108 retrieving revision 1.109 diff -Lhtml.h -Lhtml.h -u -p -r1.108 -r1.109 --- html.h +++ html.h @@ -51,6 +51,7 @@ enum htmltag { TAG_SPAN, TAG_VAR, TAG_BR, + TAG_HR, TAG_MARK, TAG_MATH, TAG_MROW, Index: tbl_html.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/tbl_html.c,v retrieving revision 1.36 retrieving revision 1.37 diff -Ltbl_html.c -Ltbl_html.c -u -p -r1.36 -r1.37 --- tbl_html.c +++ tbl_html.c @@ -241,7 +241,12 @@ print_tbl(struct html *h, const struct t "vertical-align", valign, "text-align", halign, "border-right-style", rborder); - if (dp->string != NULL) { + if (dp->layout->pos == TBL_CELL_HORIZ || + dp->layout->pos == TBL_CELL_DHORIZ || + dp->pos == TBL_DATA_HORIZ || + dp->pos == TBL_DATA_DHORIZ) + print_otag(h, TAG_HR, ""); + else if (dp->string != NULL) { save_font = h->metac; html_setfont(h, dp->layout->font); if (dp->layout->pos == TBL_CELL_LONG) -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv