summaryrefslogtreecommitdiff
path: root/regress/usr.bin/mandoc
AgeCommit message (Collapse)Author
2017-06-11Do not issue the message "no blank before trailing delimiter" for .No.Ingo Schwarze
In practice, that message only matters inside .Bf, and even there, it can occasionally be a false positive. In all other cases, it usually is a false positive, so it is better to drop it outright. Suggested by jmc@.
2017-06-10style message about missing blank before trailing delimiter;Ingo Schwarze
inspired by mdoclint(1), and jmc@ considers it useful
2017-06-08Implement w layout specifier (minimum column width).Ingo Schwarze
Improve width calculation of text blocks. Reduces the groff/mandoc diff in Base+Xenocara by about 800 lines.
2017-06-03ignore blank lines in man(7) next line scope;Ingo Schwarze
strange groff edge case behaviour found in multimedia/mjpegtools
2017-06-02add about 15 missing character escape sequences found in groff_char(7);Ingo Schwarze
triggered by multimedia/mkvtoolnix mkvmerge(1) using \(S2
2017-06-01Minimal implementation of the \h (horizontal motion) escape sequence.Ingo Schwarze
Good enough to cope with the average DocBook insanity.
2017-05-30STYLE message about useless macros we don't want (Bt Tn Ud);Ingo Schwarze
not a WARNING because they don't endanger portability
2017-05-30fix formatting of intermediate punctuation in .LkIngo Schwarze
2017-05-30Macro argument quoting does not prevent recognition of punctuationIngo Schwarze
and of called macros. This bug affects almost all macros, and fixing it simplifies the code. It is amazing that the bogus ARGS_QWORD feature got implemented in the first place, and then carrier along for more than eight years without anybody ever noticing that it was pointless. Reported by Leah Neukirchen <leah at vuxu dot org>, found on Void Linux.
2017-05-17*Add* a test checking that no empty databases get created,Ingo Schwarze
by *removing* one line from the Makefile. Neat, isn't it?
2017-05-17Stop testing the creation and the properties of empty databases.Ingo Schwarze
They are about to be deprecated. For the tests built on top of them, use a database containing a single page instead.
2017-05-08Basic implementation of the roff(7) .ti (temporary indent) request.Ingo Schwarze
Needed by about four dozen ports (thanks to naddy@ for the research).
2017-05-07Basic implementation of the roff(7) .ta (define tab stops) request.Ingo Schwarze
This is the first feature made possible by the parser reorganization. Improves the formatting of the SYNOPSIS in many Xenocara GL manuals. Also important for ports, as reported by many, including naddy@.
2017-05-05Move .sp to the roff modules. Enough infrastructure is in placeIngo Schwarze
now that this actually saves code: -70 LOC.
2017-05-05Move handling of the roff(7) .ft request from the man(7)Ingo Schwarze
modules to the new roff(7) modules. As a side effect, mdoc(7) now handles .ft, too. Of course, do not use that.
2017-05-04Parser reorg:Ingo Schwarze
Generate the first node on the roff level: .br Fix some column numbers in diagnostic messages while here.
2017-05-01When trying to expand some columns in a table where the sum of theIngo Schwarze
widths of the remaining columns is already wider than the line length, underflowing size_t and dying from ENOMEM is the wrong plan. Instead, simply refrain from expanding anything in such a situation, avoiding a crash that tb@ found with afl.
2017-04-28Delete .Pp right before the first .Sh and right before any .Ss,Ingo Schwarze
and warn about it; mdoclint(1) does so, and it makes sense.
2017-04-17test display of long URIsIngo Schwarze
2017-04-14adjust .Lk tests after groff and mandoc .Lk improvementsIngo Schwarze
2017-03-11test infinite recursion in eqn(7) "define" statementsIngo Schwarze
2017-03-11In markdown, autolinks are dangerous. Different compilers disagreeIngo Schwarze
with respect to what constitutes a valid autolink, and if a compiler deems an autolink invalid, the input turns into an unintended and potentially harmful raw HTML tag. So, never write autolinks. Instead of <link>, write [link](link). Instead of <addr>, write [addr](mailto:addr). Issue pointed out by bentley@, who also agrees with the general direction of the change.
2017-03-08Now that markdown output is tested for almost everything, test allIngo Schwarze
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.
2017-03-08According to the CommonMark specification, backslash escapesIngo Schwarze
and markdown markup do not work inside code spans.
2017-03-08.Bl -column never gets blank lines between rowsIngo Schwarze
2017-03-08enable -T markdown tests of filled displays and tagged listsIngo Schwarze
2017-03-08prevent infinite recursion while expanding the argumentsIngo Schwarze
of a user-defined macro; issue found by tb@ with afl(1)
2017-03-07If a user-defined macro is aborted because it exceeds the stackIngo Schwarze
limit, usually due to infinite recursion, discard whatever remains in all those open stack levels. Otherwise, insane constructions like the following could generate macros of enormous size, causing mandoc(1) to die from memory exhaustion: .de m \" original macro definition .m \" recursion to blow up the stack .de m \" definition to be run during the call of .m marked (*) very long plain text (some kilobytes) .m \" expand the above a thousand times while unwinding the stack .. \" end of the original definition .m \" (*) recursively generate a ridiculously large macro .. \" end of recursively generated definition .m \" execute the giant macro, exhausting memory Very creative abuse found by tb@ with afl(1).
2017-03-07Escape blanks at the end of markdown linesIngo Schwarze
such that they don't look like output line breaks.
2017-03-07fix completely empty .Eo: no blank line wantedIngo Schwarze
2017-03-07fix spacing after empty .FlIngo Schwarze
2017-03-07implement .An -split and -nosplitIngo Schwarze
2017-03-07Fix .In formatting in the SYNOPSIS:Ingo Schwarze
No &zwnj; in the middle of **, please.
2017-03-06Using .Nd only makes sense in the NAME section.Ingo Schwarze
Warn if that macro occurs elsewhere. Triggered by a question from Dag-Erling Smoergrav <des @ FreeBSD>.
2017-03-06URIs need different escaping; reported by reyk@Ingo Schwarze
2017-03-05first batch of -T markdown testsIngo Schwarze
2017-03-05Infrastructure for -T markdown tests.Ingo Schwarze
This is needed because -T marksdown is expected to receive less maintenance than -T ascii, so we need automation to make sure that regular parser maintenance doesn't break this output mode.
2011-12-04test some simple macros; written while working on -TmanIngo Schwarze
2017-02-17Use typographic quotes rather than '"' for .Rs %T (no change for -TasciiIngo Schwarze
output, of course). Patch from bentley@ in November 2014. This can be committed now because groff merged Anthony's patch yesterday. Simply committing myself because asking Anthony to go search for his two-year-old patch and have him discover that it had accumulated an average of (felt) two or three conflicts per line by now would have been mean, even if hilarious.
2017-02-17Many people have been complaining for a long time that ``...'' looksIngo Schwarze
ugly in -Tascii output. For that reason, bentley@ submitted patches to render "..." instead to groff in November 2014 (yes, more than two years ago). Carsten Kunze yesterday merged them for the upcoming groff-1.22.4 release. Yay! Consequently, do the same in mandoc: Render \(Lq and \(Rq (which are used for .Do, .Dq, .Lb, and .St) as '"' in -Tascii output. All other output modes including -Tutf8 remain unchanged.
2017-02-17more tests for .IP/.nf interaction that i forgot to commitIngo Schwarze
2017-02-16Surprisingly, groff does not support scaling units in .Bl -columnIngo Schwarze
column width specifiers, so stop supporting them, too. As a side effect, this fixes an assertion failure that tb@ found with afl(1), triggered by: .Bl -column -4n
2017-02-16cope with macro value sorting implemented in dba.c rev. 1.6Ingo Schwarze
2017-02-16Fix block scoping error if an explicit block is broken by twoIngo Schwarze
implicit blocks (.Aq Bq Po .Pc) that left the outer breaker open and could in exceptional cases, like between .Bl and .It, cause tree corruption leading to NULL dereference. Found by tb@ with afl(1). While here, do not mark intermediate ENDBODY markers as broken.
2017-02-12Do not access a NULL pointer if a matrix or square root are empty.Ingo Schwarze
Crashes found by tb@ with afl(1).
2015-01-01eqn(7) testsIngo Schwarze
2017-02-11new regression tests for mdoc_macro.c revs. 1.167-1.172Ingo Schwarze
2017-02-11remove a few Mdocdate that snuck inIngo Schwarze
2017-02-06one less groff-mandoc difference after mdoc_validate.c rev. 1.234Ingo Schwarze
2017-01-26Fix -man -Thtml formatting after .nf (which has nothing to doIngo Schwarze
with "literal", by the way, it means "no fill"): * Use <pre> such that whitespace is preserved. * Preserve lines breaks. * For font alternating macros, avoid node recursion which required scary juggling with the fill state. Instead, simply print the text children directly. Missing feature first noticed by kristaps@ in 2011, the again reported by afresh1@ in 2016, and finally reported here: https://github.com/Debian/debiman/issues/21 , which i only found because of Shane Kerr's comment here: https://plus.google.com/110314300533310775053/posts/H1eaw9Yskoc