summaryrefslogtreecommitdiffstats
path: root/regress/eqn
Commit message (Collapse)AuthorAgeFilesLines
* To prevent infinite recursion while expanding eqn(7) definitions,Ingo Schwarze2022-04-133-6/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | we must not reset the recursion counter when moving beyond the end of the *previous* expansion, but we may only do so when moving beyond the rightmost position reached by *any* expansion in the current equation. This matters because definitions can nest; consider: .EQ define inner "content" define outer "inner outer" outer .EN This endless loop was found by tb@ using afl(1). Incidentally, GNU eqn(1) also performs an infinite loop in this situation and then crashes when memory runs out, but that's not an excuse for nasty behaviour of mandoc(1). While here, consistently print the expanded content even when the expansion is finally truncated. While that is not likely to help end-users, it may help authors of eqn(7) code to understand what's going on. Besides, it sends a very clear signal that something is amiss, which was easy to miss in the past unless people enabled -W error or used -T lint.
* trivial sync with OpenBSDIngo Schwarze2020-07-301-4/+4
| | | | | in parts of these files that are not used by -portable; consequently, no functional change
* Skip whitespace before tokens, too.Ingo Schwarze2020-01-084-3/+23
| | | | Bug found by bentley@ with input like "delim $$ delim off".
* Improve the test case by changing the eqn(7) delimiters such that itIngo Schwarze2020-01-082-7/+7
| | | | | actually tests which parts of text lines are processed with eqn(7) and which are not.
* Enable generation of the desired delim/basic output with groff(1).Ingo Schwarze2020-01-081-1/+3
| | | | No functional change for the portable test suite.
* Simplify maintainer targets in OpenBSD: EQN and TBL variablesIngo Schwarze2020-01-081-3/+1
| | | | | | no longer exist and NROFF/NOPTS were replaced with GROFF/GOPTS. This doesn't change how things work in the protable version of the test suite.
* adapt to print_indent() HTML_NOSPACE fix, html.c rev. 1.261Ingo Schwarze2019-09-052-18/+6
|
* Render the eqn(7) "sqrt" function as U+221A in UTF-8 output.Ingo Schwarze2018-10-022-4/+4
| | | | | | This also agrees with what groff does. Suggested by an attendee of EuroBSDCon 2018 in Bucuresti. Written on the plane Bucuresti-Frankfurt returning from EuroBSDCon.
* eliminate white space after opening and before closing punctuationIngo Schwarze2017-08-233-4/+4
|
* Suppress spacing before certain kinds of lists.Ingo Schwarze2017-08-231-1/+1
| | | | | | | One benefit is a reduced probablity that a blank appears between a function name and the opening parenthesis introducing the arguments. The heuristics isn't perfect and may occasionally suppress a blank that wouldn't do harm.
* Improve ASCII rendering of a few rare character escape sequencesIngo Schwarze2017-08-231-1/+1
| | | | | that can be changed unilaterally because groff fails to render them at all.
* catch up with ASCII renderings in chars.c rev. 1.72Ingo Schwarze2017-08-233-4/+5
|
* print the right character for mathematical overbar; from bentley@Ingo Schwarze2017-07-154-4/+4
|
* print HTML character references as 4+ digits hexadecimal, like Unicode;Ingo Schwarze2017-07-145-9/+9
| | | | from bentley@, tweaked by me
* add parentheses to the output where required for disambiguationIngo Schwarze2017-07-079-10/+10
|
* Fix operator precedence according to Brian W. Kernighan and LorindaIngo Schwarze2017-07-0620-25/+78
| | | | | L. Cherry, "Typesetting Mathematics - User's Guide (Second Edition)", August 15, 1978, paragraph 23; swarm of bugs pointed out by bentley@.
* Messages of the -Wbase level now print STYLE:. Since thisIngo Schwarze2017-07-0444-80/+91
| | | | | | | | causes horrible churn anyway, profit of the opportunity to stop excessive testing, such that this is hopefully the last instance of such churn. Consistently use OpenBSD RCS tags, blank .Os, blank fourth .TH argument, and Mdocdate like everywhere else. Use -Ios=OpenBSD for platform-independent predictable output.
* catch up with the recent eqn(7) improvementsIngo Schwarze2017-06-2642-37/+229
|
* cope with changes in BASE messagesIngo Schwarze2017-06-253-6/+9
|
* style message about missing RCS ids; inspired by mdoclintIngo Schwarze2017-06-173-0/+3
|
* Style message about legacy man(7) date format in mdoc(7) documentsIngo Schwarze2017-06-113-0/+3
| | | | | and operating system dependent messages about missing or unexpected Mdocdate; inspired by mdoclint(1).
* Parser reorg:Ingo Schwarze2017-05-043-10/+10
| | | | | Generate the first node on the roff level: .br Fix some column numbers in diagnostic messages while here.
* test infinite recursion in eqn(7) "define" statementsIngo Schwarze2017-03-114-2/+51
|
* Now that markdown output is tested for almost everything, test allIngo Schwarze2017-03-081-0/+1
| | | | | | 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.
* Do not access a NULL pointer if a matrix or square root are empty.Ingo Schwarze2017-02-127-7/+34
| | | | Crashes found by tb@ with afl(1).
* Finally port the OpenBSD regression suite.Ingo Schwarze2017-02-0849-0/+413
Both kristaps@ and wiz@ repeated asked for this, literally for years.