summaryrefslogtreecommitdiffstats
path: root/regress/tbl/mod/badfont.out_ascii
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2021-08-10 12:55:03 +0000
committerIngo Schwarze <schwarze@openbsd.org>2021-08-10 12:55:03 +0000
commiteaf84848c463416967ecacc10a55630fcf7f115c (patch)
tree117ec40c599172a6a7bff36a9975014afe37425f /regress/tbl/mod/badfont.out_ascii
parent87aab9cae5c14191a96f9f17bd2723fe998eb2be (diff)
downloadmandoc-eaf84848c463416967ecacc10a55630fcf7f115c.tar.gz
Support two-character font names (BI, CW, CR, CB, CI)
in the tbl(7) layout font modifier. Get rid of the TBL_CELL_BOLD and TBL_CELL_ITALIC flags and use the usual ESCAPE_FONT* enum mandoc_esc members from mandoc.h instead, which simplifies and unifies some code. While here, also support CB and CI in roff(7) \f escape sequences and in roff(7) .ft requests for all output modes. Using those is certainly not recommended because portability is limited even with groff, but supporting them makes some existing third-party manual pages look better, in particular in HTML output mode. Bug-compatible with groff as far as i'm aware, except that i consider font names starting with the '\n' (ASCII 0x0a line feed) character so insane that i decided to not support them. Missing feature reported by nabijaczleweli dot xyz in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=992002. I used none of the code from the initial patch submitted by nabijaczleweli, but some of their ideas. Final patch tested by them, too.
Diffstat (limited to 'regress/tbl/mod/badfont.out_ascii')
-rw-r--r--regress/tbl/mod/badfont.out_ascii13
1 files changed, 7 insertions, 6 deletions
diff --git a/regress/tbl/mod/badfont.out_ascii b/regress/tbl/mod/badfont.out_ascii
index 43683330..4cd3bd3f 100644
--- a/regress/tbl/mod/badfont.out_ascii
+++ b/regress/tbl/mod/badfont.out_ascii
@@ -6,9 +6,10 @@ NNAAMMEE
DDEESSCCRRIIPPTTIIOONN
normal text
- +----------------+
- |bboolldd none |
- |_i_t_a_l_i_c none |
- |bboolldd _i_t_a_l_i_c |
- +----------------+
-OpenBSD February 10, 2015 TBL-MOD-BADFONT(1)
+ +-------------------+
+ |_i_t_a_l_i_c one char |
+ |bboolldd two chars |
+ |_i_t_a_l_i_c dot |
+ |bboolldd _i_t_a_l_i_c |
+ +-------------------+
+OpenBSD August 9, 2021 TBL-MOD-BADFONT(1)