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 12673 invoked from network); 12 Jan 2022 04:43:57 -0000 Received: from bsd.lv (HELO mandoc.bsd.lv) (66.111.2.12) by inbox.vuxu.org with ESMTPUTF8; 12 Jan 2022 04:43:57 -0000 Received: from fantadrom.bsd.lv (localhost [127.0.0.1]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id e44e7214 for ; Tue, 11 Jan 2022 23:43:56 -0500 (EST) Received: from localhost (mandoc.bsd.lv [local]) by mandoc.bsd.lv (OpenSMTPD) with ESMTPA id a73663f1 for ; Tue, 11 Jan 2022 23:43:56 -0500 (EST) Date: Tue, 11 Jan 2022 23:43:56 -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: According to the tbl(7) manual, if a data cell contains only the X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-ID: <3363fcefcf30deb1@mandoc.bsd.lv> Log Message: ----------- According to the tbl(7) manual, if a data cell contains only the two character sequence "\_" or "\=", a single or double horizontal line is supposed to be drawn inside the cell, not joining its neighbours. I am not aware of any way to do that with HTML and/or CSS. Still, it seems closer to the intent of the document author to draw a horizontal line with
, even though that line will join the neighbour cells, rather than printing a literal '_' or '=' character. Formatting tweak inspired by a related question from Ted Bullock . Modified Files: -------------- mandoc: tbl_html.c Revision Data ------------- Index: tbl_html.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/tbl_html.c,v retrieving revision 1.38 retrieving revision 1.39 diff -Ltbl_html.c -Ltbl_html.c -u -p -r1.38 -r1.39 --- tbl_html.c +++ tbl_html.c @@ -1,4 +1,4 @@ -/* $Id$ */ +/* $Id$ */ /* * Copyright (c) 2011 Kristaps Dzonsons * Copyright (c) 2014,2015,2017,2018,2021 Ingo Schwarze @@ -247,7 +247,9 @@ print_tbl(struct html *h, const struct t if (dp->layout->pos == TBL_CELL_HORIZ || dp->layout->pos == TBL_CELL_DHORIZ || dp->pos == TBL_DATA_HORIZ || - dp->pos == TBL_DATA_DHORIZ) + dp->pos == TBL_DATA_NHORIZ || + dp->pos == TBL_DATA_DHORIZ || + dp->pos == TBL_DATA_NDHORIZ) print_otag(h, TAG_HR, ""); else if (dp->string != NULL) { save_font = h->metac; -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv