summaryrefslogtreecommitdiffstats
path: root/regress
Commit message (Collapse)AuthorAgeFilesLines
* Properly handle -mdoc %A in all outputs. This has two-author entiresKristaps Dzonsons2010-09-043-0/+48
| | | | | | | separated by only "and" while two or more are with ", and" for the last author. Also remove relevant TODO and add regression tests.
* Cached `Bl -offset' into mdoc_bl. Removed erroneous "-offset defaultsKristaps Dzonsons2010-06-121-0/+15
| | | | | to 6n if no value is specified" and added regression tests for `Bl' testing against the empty -offset argument.
* Removed stipulation that an empty `Bd -offset' will default to 6n. NotKristaps Dzonsons2010-06-123-0/+66
| | | | | | | sure where this came about. Added regression tests to convince myself that this is so. Also consolidated COMPATIBILITY notes regarding `Bd'. Added COMPATIBILITY note to the effect that old groff pukes on `Bd -compact -ragged' (regression test will fail on old groff).
* Cache all of `Bd's resolved arguments into mdoc_bd, which is stashed inKristaps Dzonsons2010-06-121-0/+28
| | | | | | the "data" union in mdoc_node. Allows me to remove some ugly loops in the front-end and duplicate tests in mdoc_action.c. Add a regression test to make sure we're not doing anything bad (more to come).
* Fix adding some minimal intelligence to conditional parser. See roff.7Kristaps Dzonsons2010-06-101-0/+30
| | | | | | | | | | for what's supported. This simplified the roff_cond() function quite nicely. From a bug report by uqs@. Added regression test based on bug-report example by uqs@. Also added ROFF_DEBUG to see what the hell the parser is actually doing. Obviously turned off by default.
* Normalise SYNOPSIS behaviour after I gave up on following groff'sKristaps Dzonsons2010-06-076-124/+14
| | | | | | | | | | | | | | | | | | | | | inconsistent behaviour. In short: Some macros are displayed differently in the SYNOPSIS section, particularly Nm, Cd, Fd, Fn, Fo, In, Vt, and Ft. All of these macros are output on their own line. If two such dissimilar macros are pair-wise invoked (except for Ft before Fo or Fn), they are separated by a vertical space, unless in the case of Fo, Fn, and Ft, which are always separated by vertical space. Behaviour ok Jason McIntyre, ingo@. Fallout will be treated case-by-case. I had to clear out some regressions that were testing against groff's stranger behaviours: these will now break, as we don't care about such invocations. Also removed the newline for `Cd' invocation in a non-SYNOPSIS context.
* Have regress.sh bail out if $MANDOC isn't found.Kristaps Dzonsons2010-06-061-0/+6
|
* Fixed -Tascii and -Thtml rendering of `Ft' and `Fo'.Kristaps Dzonsons2010-06-064-0/+99
|
* Fixed `Fn' newline behaviour and added some regression tests to thisKristaps Dzonsons2010-06-042-0/+37
| | | | | | | extent. Documented `Fn'. Please note the COMPATIBILITY note regarding historic groff.
* Documented `In' in full.Kristaps Dzonsons2010-06-041-0/+24
| | | | | | Fixed `In' to behave properly: it wasn't properly breaking lines, formatting, or really anything else. Noted COMPATIBILITY with OpenBSD's groff, which pukes all over `In'.
* Fixed `Fd' to format in the right way. Found when confused by what theKristaps Dzonsons2010-06-041-0/+22
| | | | | hell `Fd' is supposed to do anyway (answer: it's a historical macro and we shouldn't be doing anything with it anyway).
* Regression made old-groff-friendly.Kristaps Dzonsons2010-06-011-2/+0
|
* Fixed condition of `\}' closing a conditional at the start of the line.Kristaps Dzonsons2010-06-011-0/+95
| | | | | | | | Fixed flushed-out condition of \} causing subsequent arguments to be truncated, when in fact the whole line should be passed through (if the conditional succeeds) to the front-end and the \} ignored there. Added regression test of this behaviour.
* Macro lines now infer an `It' if they immediately follow a `Bl -column'Kristaps Dzonsons2010-05-313-0/+43
| | | | | | | or a closed-out `It' block within a `Bl -column' (which only happens when a macro or free-form text is encountered prior to an `It'). Added some regression tests for this behaviour.
* Strengthened constraint for passing into `It'.Kristaps Dzonsons2010-05-311-0/+17
| | | | Added regression test for constrained condition.
* Add ability to interpret initial free-form lines as part of a `BlKristaps Dzonsons2010-05-313-0/+39
| | | | | | | | -column' up until the first `It'. This is UGLY and should have all sorts of warnings, and will. On the one hand, it fits with groff's notion of tabs and tab-spaces. On the other hand, it's not really "free-form" text any more. Note that this does not yet accomodate for macros coming on these lines.
* Add some regression tests.Kristaps Dzonsons2010-05-312-0/+36
|
* Tweak regression so it doesn't puke on the groff behaviour (allowingKristaps Dzonsons2010-05-301-1/+1
| | | | | open scopes to migrate across tabs) that we probably won't support and is well-known.
* Migrate `Bl -column' phrases to be MDOC_BODY instead of MDOC_HEAD. ThisKristaps Dzonsons2010-05-304-0/+54
| | | | | | | | | | will make it easy for re-entrant parsing of `Ta' macros to fit in with standard closure rules. Added some more regressions for `Bl -column'. Note that one should fail, as documented in the TODO file. Recorded change of AST BNF in mdoc.3.
* First in several iterative patches in getting complex -column listsKristaps Dzonsons2010-05-302-0/+30
| | | | | | | | supported (which works but is tricky enough that it should be broken down into digestable parts). This simply moves around the propogation of ARGS_PEND into one recognised by phrase(). Added a few regressions for simple -column lists.
* Added a final regression for `Ar' (won't work on old groff).Kristaps Dzonsons2010-05-291-0/+10
|
* Adding `Ar' regression for empty-prior-closing-punctuation checkin.Kristaps Dzonsons2010-05-291-0/+17
| | | | | NOTE: this will not work on old groff, which forgets to print `file ...' when encountering an empty Ar node.
* Commit of patch floated on discuss@ a few days ago: if an in_line scopeKristaps Dzonsons2010-05-294-5/+72
| | | | | | | | | | has not been opened and closing punctuation is encountered AND the macro is marked as accepting no-content (or `Li'), then open an empty scope. Added regression tests for `Fl' and `Li' testing this behaviour. Also, squeeze hyph0.in tests into the last characters of each line so that groff doesn't hyphenate and break the test.
* Documented `Ud'.Kristaps Dzonsons2010-05-262-0/+22
| | | | | | | | | | | Proper EOS handling for `Rv', `Ex', `Ud', and `Bt'. Both `Bt' and `Ud' now warn about and discard line arguments (reported by Ulrich Spoerlein). Collapsed posts_xr into posts_wtext (harmless: they're the same thing). Added regressions for `Ud' and `Bt'.
* Fixed `Lb' to be in_line (reported by Ulrich Spoerlein).Kristaps Dzonsons2010-05-264-0/+74
| | | | | | | | | Added `Lb' documentation to mdoc.7. Removed harmless but superfluous pre_lb check (was just NULL entries). Added regressions for `Lb' (NOTE that these will only run on new groff, as old groff doesn't support `Lb' at all).
* Forgot to add regression tests.Kristaps Dzonsons2010-05-252-0/+35
|
* Test .SH with only empty paragraph. Don't test .IP without body.Joerg Sonnenberger2010-05-221-0/+3
|
* Multiple empty .PPs don't add a vspace eitherJoerg Sonnenberger2010-05-171-0/+3
|
* Add support for .AT. Properly implement .UC. Add regress tests.Joerg Sonnenberger2010-05-1713-0/+67
|
* Tests for sane and insane handling of lines before and after .SH/.SSJoerg Sonnenberger2010-05-172-0/+23
|
* Full support for ie/el. This completes the initial roff support.Kristaps Dzonsons2010-05-1723-16/+197
| | | | | Added test files for ie/el. Using `if 0' as a baseline for "false" roff instructions instead of `if t'.
* libroff now is aware of which sub-nodes should be interpreted even in aKristaps Dzonsons2010-05-172-0/+33
| | | | | | | | | | conditional-negative context so as to preserve structural integrity. Initial "rules" (deny/allow) are now inherited for future work in evaluating conditionals. Lint-fix noted by Joerg. Added regression tests for zany constructs.
* Add a test case for nesting of .RS/.REJoerg Sonnenberger2010-05-161-0/+16
|
* `ig' support in all its glory. TryKristaps Dzonsons2010-05-168-0/+97
| | | | | | | | | | | | | | | | | | .ig ig asdf .ig fdsa .. or .ig if asdf .if n \ foo for a laugh. It all works. Lots of regression tests supporting this and documentation for the same.
* Add a basic regression test for .Bl -bullet and the various interactionsJoerg Sonnenberger2010-05-161-0/+64
| | | | with .Bd.
* Regression tests in place for `.if' in libroff.Kristaps Dzonsons2010-05-168-0/+98
| | | | | Check against some strange `.if' constructs I missed. Added initial roff.7 manual.
* Fully skip first and last line for the purpose of cmp.Joerg Sonnenberger2010-05-161-3/+6
|
* Skip first line when comparing output.Joerg Sonnenberger2010-05-161-1/+3
|
* mandoc should be a variable.Kristaps Dzonsons2010-05-161-2/+2
| | | | Consensus is on using a *.in for regression tests (symmetry-broken by Ingo).
* Remove temp files on success.Joerg Sonnenberger2010-05-161-0/+1
|
* Add a basic regression testing script.Joerg Sonnenberger2010-05-161-0/+39
|
* Deprecated old regression tests.Kristaps Dzonsons2009-03-1669-611/+0
|
* Strings abstracted into dynamically-created C files.Kristaps Dzonsons2009-03-061-1/+1
| | | | | Added -V option. Deprecated README files.
* Added another regression test.Kristaps Dzonsons2009-03-051-0/+8
|
* Added argv regression tests.Kristaps Dzonsons2009-03-052-0/+15
| | | | Table-ised argument flags in argv.c.
* Added new old escape sequence \*[nn].Kristaps Dzonsons2009-03-022-0/+49
| | | | | Initial correct .Bd support (still only text in literal displays). Symbols put into tables (character-encoding).
* Added support for dynamic -width detection for -tag lists.Kristaps Dzonsons2009-02-281-0/+11
|
* Added more character-escape regressions.Kristaps Dzonsons2009-02-273-0/+68
|
* Added character-encoding checks.Kristaps Dzonsons2009-02-245-0/+91
|
* Escape-sequence validation in place (for nodes).Kristaps Dzonsons2009-02-246-1/+101
|