freebsd-nq/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
arch.c
att.c
catman.8
catman.c
cgi.c
cgi.h.example
chars.c
compat_err.c
compat_fts.c
compat_fts.h
compat_getline.c
compat_getsubopt.c
compat_isblank.c
compat_mkdtemp.c
compat_mkstemps.c
compat_ohash.c
compat_ohash.h
compat_progname.c
compat_reallocarray.c
compat_recallocarray.c
compat_strcasestr.c
compat_stringlist.c
compat_stringlist.h
compat_strlcat.c
compat_strlcpy.c
compat_strndup.c
compat_strsep.c
compat_strtonum.c
compat_vasprintf.c
config.h
configure
configure.local.example
dba_array.c
dba_array.h
dba_read.c
dba_write.c
dba_write.h
dba.c
dba.h
dbm_map.c
dbm_map.h
dbm.c
dbm.h
demandoc.1
demandoc.c
eqn_html.c
eqn_parse.h
eqn_term.c
eqn.7
eqn.c
eqn.h
gmdiff
html.c
html.h
INSTALL
lib.c
lib.in
libman.h
libmandoc.h
libmdoc.h
LICENSE
main.c
main.h
Makefile
Makefile.depend
makewhatis.8
man_html.c
man_macro.c
man_term.c
man_validate.c
man-cgi.css
man.1
man.7
man.c
man.cgi.3
man.cgi.8
man.conf.5
man.h
man.options.1
manconf.h
mandoc_aux.c
mandoc_aux.h
mandoc_char.7
mandoc_escape.3
mandoc_headers.3
mandoc_html.3
mandoc_malloc.3
mandoc_msg.c
mandoc_ohash.c
mandoc_ohash.h
mandoc_parse.h
mandoc_xr.c
mandoc_xr.h
mandoc.1
mandoc.3
mandoc.c
mandoc.css
mandoc.db.5
mandoc.h
mandocd.8
mandocd.c
mandocdb.c
manpath.c
manpath.h
mansearch.3
mansearch.c
mansearch.h
mchars_alloc.3
mdoc_argv.c
mdoc_html.c
mdoc_macro.c
mdoc_man.c
mdoc_markdown.c
mdoc_state.c
mdoc_term.c
mdoc_validate.c
mdoc.7
mdoc.c
mdoc.h
msec.c
msec.in
NEWS
out.c
out.h
preconv.c
predefs.in
read.c
roff_html.c
roff_int.h
roff_term.c
roff_validate.c
roff.7
roff.c
roff.h
soelim.1
soelim.c
st.c
tag.c
tag.h
tbl_data.c
tbl_html.c
tbl_int.h
tbl_layout.c
tbl_opts.c
tbl_parse.h
tbl_term.c
tbl.3
tbl.7
tbl.c
tbl.h
term_ascii.c
term_ps.c
term_tab.c
term_tag.c
term_tag.h
term.c
term.h
test-attribute.c
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
test-isblank.c
test-mkdtemp.c
test-mkstemps.c
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
test-stringlist.c
test-strlcat.c
test-strlcpy.c
test-strndup.c
test-strptime.c
test-strsep.c
test-strtonum.c
test-vasprintf.c
test-wchar.c
TODO
tree.c