summaryrefslogtreecommitdiffstats
path: root/mdoc_validate.c
Commit message (Collapse)AuthorAgeFilesLines
* Big check-in of compatibility layer. This should work on most major ↵Kristaps Dzonsons2010-01-011-4/+4
| | | | architectures. Thanks to Joerg Sonnenberger.
* `Bl' lets `Sm' slip by as a child. Noted by Ingo Schwarze.Kristaps Dzonsons2010-01-011-3/+10
|
* Added mandoc_a2time() for proper date conversion.Kristaps Dzonsons2009-11-021-1/+3
| | | | | Fitted TH and Dd handlers to use mandoc_a2time(). Documented date syntax for -man, fixed documentation for -mdoc.
* Fixed -Thtml printing of -ohang lists (-mdoc).Kristaps Dzonsons2009-10-311-0/+2
| | | | Fixed validation of -ohang lists as having no widths.
* Using perror() instead of fprintf for failure from library functions.Kristaps Dzonsons2009-10-311-1/+0
|
* Full `%U' support.Kristaps Dzonsons2009-10-261-6/+5
| | | | | | | `Lk' display fixed. Renamed arg2xxxx as a2xxxx for consistency. Renamed print_foot to print_man_foot for consistency. Removed default printing of `~' when `Lk' not provided (not sure where I got that from).
* Added `%U' to -mdoc (doesn't render in a nice way yet).Kristaps Dzonsons2009-10-241-0/+3
|
* Fix adding -centred to `Bd' types (thanks to Joerg Sonnenberger).Kristaps Dzonsons2009-10-221-0/+2
|
* Fixed `-file' argument to `Bd', which is NOT a type, but instead just an ↵Kristaps Dzonsons2009-10-191-2/+0
| | | | argument.
* Beginning of mdoc.7 full-reference in place.Kristaps Dzonsons2009-10-191-2/+2
|
* Removed restrictions on `sp' (maybe a warning, someday, but for now be simple).Kristaps Dzonsons2009-10-181-33/+3
|
* Added warning about specifying list arguments before type (suggested by ↵Kristaps Dzonsons2009-10-151-6/+14
| | | | Joerg Sonnenberg).
* Fixed segfault in `Rs' empty block.Kristaps Dzonsons2009-09-241-1/+1
|
* Added EBADCHILD error (bad child of parent context).Kristaps Dzonsons2009-09-241-4/+48
| | | | | `Rs' post-checks that all children are proper bibliographic elements. `Rs' correctly re-orders its children as per groff's output (including %C).
* Updated manual structure in mdoc.7.Kristaps Dzonsons2009-08-201-15/+2
| | | | | | Synchronised mdoc.template and mdoc.7 manual structure. `Rv' and `Ex' now accept multiple arguments (-std made standalone, terms as children). `Rv' and `Ex' format correctly in -Tascii (plurals, commas, etc.).
* Patches and results of LLVM static analysis (thanks uqs@sporlein.net).Kristaps Dzonsons2009-07-251-0/+1
|
* `An' gives correct error message in encountering arguments/parameters.Kristaps Dzonsons2009-07-241-1/+1
|
* Bl -column now accepts columns = (1 + stated columns), which covers all ↵Kristaps Dzonsons2009-07-231-1/+1
| | | | remaining column usage/abuse I can see.
* Undocumented behaviour in groff: `Bl -column' implies `-compact'.Kristaps Dzonsons2009-07-201-4/+13
| | | | mandoc now allows fewer columns than the -width specifies.
* More clarity fixes in mdoc.7.Kristaps Dzonsons2009-07-181-1/+1
| | | | Sm/Sy argument to `Bf' fixed (schwarze@openbsd).
* `sp' documented: validates & produces correct output.Kristaps Dzonsons2009-07-171-1/+3
|
* Removed EARGVPARM (superfluous, overly error-generating).Kristaps Dzonsons2009-07-171-3/+34
| | | | Added `sp' handler.
* Documented `br' macro in mdoc.7.Kristaps Dzonsons2009-07-171-3/+2
| | | | Made `Pp' and `Lp' be inline_eoln() (not sure why they weren't before).
* Added `br' and `sp' macros (requested by joerg@netbsd.org, jmc@openbsd.org).Kristaps Dzonsons2009-07-171-0/+2
|
* Err/warn fix (schwarze@openbsd.org).Kristaps Dzonsons2009-07-131-120/+110
| | | | Lots of whitespace churn in getting functions aligned nicely.
* Replacement of `Lb' in mdoc_action.c.Kristaps Dzonsons2009-07-121-1/+13
| | | | | | Added warning against bogus `Lb' (like groff does). Added proper quotes around `Lb' in mdoc_term.c. Moved mdoc_a2lib -> libmdoc (where it belongs).
* Moved mdoc_a2st() out of mdoc.h -> libmdoc.h (replacement in mdoc_action.c).Kristaps Dzonsons2009-07-121-1/+1
| | | | Made bad standards into an error (were a warning).
* Check for NAME sanity fixed (last named section -> last section).Kristaps Dzonsons2009-07-121-1/+1
|
* Added back in MDOC_TEXT stipulation in NAME check (post-Nm punctuation, duh).Kristaps Dzonsons2009-07-121-0/+2
|
* `Nd' is now a BFI (was an ELEM). Noted by joerg@netbsd.org, behaviour ok ↵Kristaps Dzonsons2009-07-121-4/+5
| | | | jmc@openbsd.org, etc.
* Fixed mdoc_nwarn/mdoc_nerr considering themselves err/warn instead of ↵Kristaps Dzonsons2009-07-121-2/+4
| | | | warn/err (BIG mistake). From suggestion by <joerg@netbsd.org>.
* Made `In' handling work in new-groff style (see mdoc.samples).Kristaps Dzonsons2009-07-071-3/+1
|
* Small clean-ups in error message usage.VERSION.1.7.23Kristaps Dzonsons2009-07-071-4/+2
| | | | Version.
* Consolidated all err/warnings into mdoc.c via libmdoc.h.Kristaps Dzonsons2009-07-061-221/+73
|
* Fix in MDOC_IGN_CHARS ref.Kristaps Dzonsons2009-07-061-1/+1
|
* Consolidated mdoc_validate.c pwarn into perr (slowly phasing out per-file ↵Kristaps Dzonsons2009-07-061-109/+83
| | | | pre-formatted error strings).
* Initial removal of enum mdoc_warn from mdoc warnings (unnecessary complication).Kristaps Dzonsons2009-07-061-11/+5
|
* Removed WDEPCOL (schwarze@openbsd.org).Kristaps Dzonsons2009-07-041-5/+0
|
* Moved escape validation into libmandoc.h/mandoc.c (common between ↵Kristaps Dzonsons2009-07-041-4/+6
| | | | | | | libman/libmdoc1). libman supports MAN_IGN_ESCAPE (like MDOC_IGN_ESCAPE). All popular escapes now handled consistently.
* Removed escape-deprecation note (better solution in progress, ↵Kristaps Dzonsons2009-06-271-8/+0
| | | | | | | | schwarze@openbsd.org). Using EXIT_FAILURE for parse errors (nicm@openbsd.org). Fixed use of warn/warnx (nicm@openbsd.org). Fixed use of getsubopt (nicm@openbsd.org).
* Added nchild decrement in libman (not used, but better in than forgotten).Kristaps Dzonsons2009-06-181-17/+2
| | | | Added nchild to libmdoc, deprecated count() functions in validator.
* Lint fixes.Kristaps Dzonsons2009-06-171-3/+2
|
* `Bl -column' now correctly handles tail entries (Bl -column -more... arg0...).Kristaps Dzonsons2009-06-171-17/+31
|
* Cleaned up .Bf validator.Kristaps Dzonsons2009-06-171-18/+13
|
* Section orders are more elegantly handled (MDOC_PBODY is a flag).Kristaps Dzonsons2009-06-171-24/+25
| | | | Cleaned up string->enum conversion for section lookup.
* Noted deprecation of \*( and \* special-character escapes.Kristaps Dzonsons2009-06-171-2/+8
| | | | Minor clean-ups.
* Removed MDOC___: moved MDOC_Ap to its index (comments not passed into mdoc ↵Kristaps Dzonsons2009-06-161-2/+1
| | | | parser).
* `Lk' is correctly handled as CALLABLE (note groff munges nested output).Kristaps Dzonsons2009-06-121-4/+6
| | | | | | | `Mt' is now CALLABLE. Fixed missing validate/action of zero-element, non-called inline elements. Fixed missing validate/action of nested inline element re-calls. Fixed bogus column argv index in validator.
* Clean up validation of field widths.Kristaps Dzonsons2009-06-111-28/+55
| | | | | | Pushed field-width warn/error into warn/error routine. Removed superfluous space at output eoln. Fixed overzealous line break in lists.
* Fixed license email address.Kristaps Dzonsons2009-06-101-1/+1
|