summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
* Missing prototype for getsubopt() on NetBSD fixed.VERSION_1_10_1Kristaps Dzonsons2010-06-081-1/+2
|
* Fixed missing tag in www index.Kristaps Dzonsons2010-06-081-2/+1
|
* Updated version bits with PostScript goodies.Kristaps Dzonsons2010-06-071-37/+63
|
* Lint fix.Kristaps Dzonsons2010-06-072-2/+5
| | | | Added J.C. Roberts' TODO note.
* First check-in of PostScript output. This does not change any logicKristaps Dzonsons2010-06-078-57/+339
| | | | | | within term.c, but does add a small shim over putchar() that switches on the output engine. Prints, for this initial version, only monospace and without font decorations. It's a start.
* Added version bits for 1.10.1.Kristaps Dzonsons2010-06-073-11/+20
| | | | Spell-checked manuals.
* I really should run -Tlint on my own manuals before committing them.Kristaps Dzonsons2010-06-071-3/+3
| | | | EOLN whitespace fixed.
* Normalise SYNOPSIS behaviour after I gave up on following groff'sKristaps Dzonsons2010-06-079-309/+220
| | | | | | | | | | | | | | | | | | | | | 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.
* Forgot to check in manual along with -Owidth=width patch.Kristaps Dzonsons2010-06-071-4/+14
|
* Add -Owidth=width option to mandoc -Tascii. Asked for by joerg@ about aKristaps Dzonsons2010-06-074-13/+33
| | | | thousand years ago. Note that this is normalised to >=60.
* Small fix to preserve trailing semicolons in examples.Kristaps Dzonsons2010-06-061-4/+4
|
* Merge a fix to avoid a regression in OpenBSD:Ingo Schwarze2010-06-061-1/+4
| | | | | | | | | | | Restore the blank line before .In in SYNOPSIS except right after .Sh or right after another .In. Even though Kristaps says SYNOPSIS blank-line handling is still very much work in progress and more is probably needed, this one is useful to keep in sync with OpenBSD. "fine" kristaps@
* Add MAP_SHARED for mmap, at least NetBSD with DIAGNOSTIC is quite noisyJoerg Sonnenberger2010-06-061-2/+2
| | | | otherwise.
* 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-066-47/+156
|
* Shortened "its calling syntax" -> "its syntax".Kristaps Dzonsons2010-06-061-37/+151
| | | | | | Better documentation for `Fa' and some others. Added `Ft', `Fo', and some COMPATIBILITY notes.
* Fix following the first: `Ft' is given special treatment if specified beforeKristaps Dzonsons2010-06-042-3/+9
| | | | `Fn'.
* Fixed `Fn' newline behaviour and added some regression tests to thisKristaps Dzonsons2010-06-045-6/+84
| | | | | | | extent. Documented `Fn'. Please note the COMPATIBILITY note regarding historic groff.
* Documented `In' in full.Kristaps Dzonsons2010-06-044-38/+66
| | | | | | 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-043-19/+35
| | | | | hell `Fd' is supposed to do anyway (answer: it's a historical macro and we shouldn't be doing anything with it anyway).
* Documented `Db', `El', `Fa', and `Fd'.Kristaps Dzonsons2010-06-041-2/+39
|
* Document the `Mt' macro.Kristaps Dzonsons2010-06-031-1/+10
|
* Remove manuals.7 (see http://manpages.bsd.lv).Kristaps Dzonsons2010-06-033-246/+7
|
* Version bits for 1.10.1.Kristaps Dzonsons2010-06-032-4/+14
|
* Compatibility note about `Ta' being a line macro.Kristaps Dzonsons2010-06-031-1/+6
|
* Complete, rigorous documentation of the `Bl' and `It' macros, includingKristaps Dzonsons2010-06-031-18/+97
| | | | | the peculiarities with `It'-less `Bl -column' invocations, column phrases, per-type syntax of `It', etc.
* Consolidated list processing to a single loop in mdoc_validate.c. ThisKristaps Dzonsons2010-06-036-137/+122
| | | | | | | | | | relieves having to repeat running over the argument list in mdoc_action.c and mdoc_validate.c. Default to LIST_item for type-less lists (groff technically doesn't do this: it just ignores the `It' lines altogether). Make MANDOC_LISTTYPE be a recoverable error.
* Strip empty-line markers from mdoc.template and its mdoc.7 embedded formKristaps Dzonsons2010-06-022-6/+2
| | | | (as per Jason McIntyre's suggestion for manuals in general).
* Note missing man/roff(?) feature not documented anywhere.Kristaps Dzonsons2010-06-011-0/+4
|
* Spelling patches provided by Ulrich Spoerlein.Kristaps Dzonsons2010-06-012-6/+6
|
* De Morgan's law not being applied properly. Noted by Ulrich Spoerlein.Kristaps Dzonsons2010-06-011-2/+2
|
* Noted that \} collapses into a zero-width space on the front-end.Kristaps Dzonsons2010-06-011-3/+5
|
* 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-015-8/+104
| | | | | | | | 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.
* Lint fixes (noops).Kristaps Dzonsons2010-05-311-3/+2
|
* Cleanup post_bl_head() to use enum mdoc_list (avoid traversing thatKristaps Dzonsons2010-05-314-15/+20
| | | | | | | | list). Reverted MANDOC_COLUMNS to be a bad-bad syntax error: we don't, and apparently never have, allowed mixing of -column syntaxes. This would have segfaulted if encountered.
* Clean up the validation code for `It' macros: use enum mdoc_listKristaps Dzonsons2010-05-311-72/+40
| | | | | instead of iterating over arguments and only scan with `-column', which needs the count of arguments.
* Remove now-superfluous check on `Ta' context.Kristaps Dzonsons2010-05-311-21/+1
|
* Fixed my breaking of Ingo's eoln-whitespace detection code, where aKristaps Dzonsons2010-05-311-1/+2
| | | | | hyphen wasn't resetting the fact of being whitespace. Noted by Jason McIntyre.
* Macro lines now infer an `It' if they immediately follow a `Bl -column'Kristaps Dzonsons2010-05-315-11/+101
| | | | | | | 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-312-2/+20
| | | | Added regression test for constrained condition.
* Add ability to interpret initial free-form lines as part of a `BlKristaps Dzonsons2010-05-317-5/+82
| | | | | | | | -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.
* Getting args() function ready to handle no-context (*pos can == 0)Kristaps Dzonsons2010-05-311-12/+12
| | | | processing.
* `Ta' scope-checks need to be more specific (until implicit `It' handlingKristaps Dzonsons2010-05-311-2/+5
| | | | comes into play).
* Add some regression tests.Kristaps Dzonsons2010-05-312-0/+36
|
* Remove enum mdocargerr from phrase() (unused).Kristaps Dzonsons2010-05-318-32/+119
| | | | | | | | | | | | | | Add `Ta' macro, which is basically a NULL case everywhere but in mdoc_macro.c, where it closes out an existing `It' body scope and opens a new one, then continues parsing as in phrase() (TODO: merge these two?). Fix where scope-breaking was silently just dying instead of printing an error. Fix where trailing `Ta' or tab weren't creating a new MDOC_BODY context. We now support arbitrarily complex `It' contents for `Bl -column'.
* Fix unescaped `Ta' invocations in mdoc.7.Kristaps Dzonsons2010-05-311-5/+5
|
* Have mdoc_args() use enum mdoc_list instead of scanning.Kristaps Dzonsons2010-05-301-17/+4
|
* 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-3010-70/+141
| | | | | | | | | | 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.