freebsd-dev/contrib/mandoc
Eric van Gyzen 9f6a619a7d mandoc: workaround lack of macro parsing in list -width
GNU tools parse macros in the -width argument of lists.  mandoc does not,
so it calculates an excessive width.  This often squeezes the text into
a very narrow column, especially in nested lists.

Implement the easy workaround suggested in the TODO list.  When there is
only one macro, at the beginning of the -width argument, this fixes the
formatting as well as a complete solution.

Reviewed by:	bapt
Relnotes:	yes
MFC after:	1 week
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D35245
2022-05-31 10:06:46 -05:00
..
apropos.1 mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
arch.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
att.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
catman.8
catman.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
cgi.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
cgi.h.example
chars.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
compat_err.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
compat_fts.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
compat_fts.h mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
compat_getline.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
compat_getsubopt.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
compat_isblank.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
compat_mkdtemp.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
compat_mkstemps.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
compat_ohash.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
compat_ohash.h
compat_progname.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
compat_reallocarray.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
compat_recallocarray.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
compat_strcasestr.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
compat_stringlist.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
compat_stringlist.h mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
compat_strlcat.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
compat_strlcpy.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
compat_strndup.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
compat_strsep.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
compat_strtonum.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
compat_vasprintf.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
config.h mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
configure mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
configure.local.example mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
dba_array.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
dba_array.h
dba_read.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
dba_write.c
dba_write.h
dba.c
dba.h
dbm_map.c
dbm_map.h Update mandoc to cvs snapshot 2019-07-23 2019-07-26 10:00:33 +00:00
dbm.c Update mandoc to cvs snapshot 2019-07-23 2019-07-26 10:00:33 +00:00
dbm.h
demandoc.1
demandoc.c Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
eqn_html.c Update mandoc to cvs snapshot 2019-07-23 2019-07-26 10:00:33 +00:00
eqn_parse.h Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
eqn_term.c Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
eqn.7 mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
eqn.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
eqn.h Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
gmdiff Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
html.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
html.h mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
INSTALL mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
lib.c Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
lib.in Update mandoc to cvs snapshot 2019-07-23 2019-07-26 10:00:33 +00:00
libman.h Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
libmandoc.h mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
libmdoc.h Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
LICENSE mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
main.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
main.h Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
Makefile mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
Makefile.depend mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
makewhatis.8 Revert r362809: Mention FreeBSD in the HISTORY sections of apropos(1) and makewhatis(8). 2020-07-14 12:02:30 +00:00
man_html.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
man_macro.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
man_term.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
man_validate.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
man-cgi.css Import mandoc 1.14.4 2018-09-20 10:58:52 +00:00
man.1 mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
man.7 mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
man.c Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
man.cgi.3
man.cgi.8
man.conf.5 mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
man.h Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
man.options.1
manconf.h mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
mandoc_aux.c
mandoc_aux.h
mandoc_char.7 mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
mandoc_escape.3
mandoc_headers.3 mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
mandoc_html.3 mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
mandoc_malloc.3 mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
mandoc_msg.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
mandoc_ohash.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
mandoc_ohash.h
mandoc_parse.h mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
mandoc_xr.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
mandoc_xr.h
mandoc.1 mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
mandoc.3 Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
mandoc.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
mandoc.css mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
mandoc.db.5
mandoc.h mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
mandocd.8
mandocd.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
mandocdb.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
manpath.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
manpath.h
mansearch.3
mansearch.c Update mandoc to cvs snapshot 2019-07-23 2019-07-26 10:00:33 +00:00
mansearch.h Update mandoc to cvs snapshot 2019-07-23 2019-07-26 10:00:33 +00:00
mchars_alloc.3
mdoc_argv.c Update mandoc to cvs snapshot 2019-07-23 2019-07-26 10:00:33 +00:00
mdoc_html.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
mdoc_macro.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
mdoc_man.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
mdoc_markdown.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
mdoc_state.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
mdoc_term.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
mdoc_validate.c mandoc: workaround lack of macro parsing in list -width 2022-05-31 10:06:46 -05:00
mdoc.7 mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
mdoc.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
mdoc.h Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
msec.c Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
msec.in flua: Add a libjail module 2020-10-24 17:08:59 +00:00
NEWS mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
out.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
out.h mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
preconv.c Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
predefs.in
read.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
roff_html.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
roff_int.h mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
roff_term.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
roff_validate.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
roff.7 mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
roff.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
roff.h mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
soelim.1
soelim.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
st.c Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
tag.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
tag.h mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
tbl_data.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
tbl_html.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
tbl_int.h Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
tbl_layout.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
tbl_opts.c Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
tbl_parse.h Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
tbl_term.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
tbl.3 Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
tbl.7 mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
tbl.c Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
tbl.h mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
term_ascii.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
term_ps.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
term_tab.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
term_tag.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
term_tag.h mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
term.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
term.h Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
test-attribute.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
test-be32toh.c
test-cmsg.c
test-dirent-namlen.c
test-EFTYPE.c
test-err.c
test-fgetln.c
test-fts.c
test-getline.c
test-getsubopt.c Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
test-isblank.c
test-mkdtemp.c
test-mkstemps.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00
test-nanosleep.c
test-noop.c
test-ntohl.c
test-O_DIRECTORY.c
test-ohash.c
test-PATH_MAX.c
test-pledge.c
test-progname.c
test-reallocarray.c
test-recallocarray.c
test-recvmsg.c
test-rewb-bsd.c
test-rewb-sysv.c
test-sandbox_init.c
test-strcasestr.c Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
test-stringlist.c Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
test-strlcat.c
test-strlcpy.c
test-strndup.c
test-strptime.c Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
test-strsep.c
test-strtonum.c
test-vasprintf.c Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
test-wchar.c Update mandoc to 1.14.5 2019-04-12 10:13:17 +00:00
TODO mandoc: workaround lack of macro parsing in list -width 2022-05-31 10:06:46 -05:00
tree.c mandoc: import version 1.14.6 2021-11-15 16:58:58 +01:00