#
e94357f9 |
| 21-Dec-2018 |
schwarze <schwarze@openbsd.org> |
Rename mandoc_getarg() to roff_getarg() and pass it the roff parser struct as an argument such that after copy-in, it can call roff_expand() once again, which used to be called roff_res() before this
Rename mandoc_getarg() to roff_getarg() and pass it the roff parser struct as an argument such that after copy-in, it can call roff_expand() once again, which used to be called roff_res() before this. This fixes a subtle low-level roff(7) parsing bug reported by Fabio Scotoni <fabio at esse dot ch> in the 4.4BSD-Lite2 mdoc.samples(7) manual page, because that page used an escaped escape sequence in a macro argument.
To expand escaped escape sequences in quoted mdoc(7) arguments, too, stop bypassing the call to roff_getarg() in mdoc_argv.c, function args() for this case. This does not solve the case of escaped escape sequences in quoted .Bl -column phrases yet.
Because roff_expand() can make the string longer, roff_getarg() can no longer operate in-place but needs to malloc(3) the returned string. In the high-level parsers, free(3) that string after processing it.
show more ...
|
#
04fbb99f |
| 10-Jun-2017 |
schwarze <schwarze@openbsd.org> |
style message about missing blank before trailing delimiter; inspired by mdoclint(1), and jmc@ considers it useful
|
#
68ba34ad |
| 08-Mar-2017 |
schwarze <schwarze@openbsd.org> |
Now that markdown output is tested for almost everything, test all input files in -T markdown output mode by default and only mark those files with SKIP_MARKDOWN that are not to be tested. Much easie
Now that markdown output is tested for almost everything, test all input files in -T markdown output mode by default and only mark those files with SKIP_MARKDOWN that are not to be tested. Much easier to read, and almost minus 40 lines of Makefile code.
show more ...
|
#
6d0f36f9 |
| 05-Mar-2017 |
schwarze <schwarze@openbsd.org> |
first batch of -T markdown tests
|
#
b723eac2 |
| 02-Jul-2014 |
schwarze <schwarze@openbsd.org> |
Clean up warnings related to macros and nesting. * Hierarchical naming of enum mandocerr items. * Improve the wording to make it comprehensible. * Mention the offending macro. * Garbage collect one c
Clean up warnings related to macros and nesting. * Hierarchical naming of enum mandocerr items. * Improve the wording to make it comprehensible. * Mention the offending macro. * Garbage collect one chunk of ancient, long unreachable code.
show more ...
|
#
2e5f490f |
| 17-Nov-2011 |
schwarze <schwarze@openbsd.org> |
Complete overhaul of the mandoc(1) test suite. * Test the recently introduced -Tman output mode, too. * Specify date and OS arguments in all tests. * Remove the kludge of sed(1)ing away the page foot
Complete overhaul of the mandoc(1) test suite. * Test the recently introduced -Tman output mode, too. * Specify date and OS arguments in all tests. * Remove the kludge of sed(1)ing away the page footer lines. * New make(1) variables SKIP_TMAN, SKIP_GROFF. * Drop obsolete, clumsy make(1) variable GROFF_TARGETS. * Delete obsolete mdoc/Bl/E*.sh error reporting tests. * Silence char/N/basic. * New targets: - ascii, ascii-clean - to run -Tascii tests only - tman, tman-clean - to run the new -Tman tests only - obj-clean - maintainer only, needed before groff-clean and groff - groff-clean - maintainer only, affects checked-in files
show more ...
|
#
eb92df09 |
| 01-Jul-2010 |
schwarze <schwarze@openbsd.org> |
major update of the mandoc test suite: * add various new and extend a few existing tests * stop using Mdocdate to ease syncing with NetBSD
|