aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_validate.c
Commit message (Collapse)AuthorAgeFilesLines
* Lint fixes (type-safety for enums via -cefuh).Kristaps Dzonsons2010-05-081-2/+2
|
* Removed manual-section-calling restrictions for `Cd' and and `Ex' (requested ↵Kristaps Dzonsons2010-04-071-14/+2
| | | | by Joerg Sonnenberger).
* Allowing `Cd' to be in section 9 (noted by Joerg Sonnenberger).Kristaps Dzonsons2010-04-071-2/+2
|
* Removed warning for `Er' when not used in certain sections (pointed out by ↵Kristaps Dzonsons2010-04-061-11/+2
| | | | Joerg Sonnenberger).
* Allow `Bd' to accept (warn about then ignore) in-line arguments.Kristaps Dzonsons2010-04-061-2/+4
|
* Cleaned up post_bl_head() and fixed erroneous reporting of child nodes.Kristaps Dzonsons2010-04-061-12/+13
|
* Let `Bl' accept arguments on the head line with a warning (these are ignored ↵Kristaps Dzonsons2010-04-061-3/+4
| | | | in the front-end device) (noted by Theo de Raadt).
* Merged patch by Ingo Schwarze allowing `Xr' to pass through with no ↵Kristaps Dzonsons2010-04-031-2/+2
| | | | arguments (emits warning of course).
* Modified version of Ingo Schwarze's patch so that -man doesn't puke when a ↵Kristaps Dzonsons2010-04-031-1/+3
| | | | TH isn't specified.
* Merged Ingo Schwarze's patch (plus documentation) for removing extraneous ↵Kristaps Dzonsons2010-04-031-3/+14
| | | | list types, which happens fairly often.
* Merging patch by Ingo Schwarze.Kristaps Dzonsons2010-04-031-3/+4
|
* Macro types enum-ated (enum mdoct) (for easier debugging in gdb of "tok" ↵Kristaps Dzonsons2010-03-311-3/+3
| | | | | | | values). Initial check-in of Ingo Schwarze's patch for Xo/Xc handling (in blocks ifdef'd "UGLY"). Put Oc-close-Op parts into UGLY ifdef blocks.
* Made `Xr' compatible with groff calling conventions where arguments ↵Kristaps Dzonsons2010-02-171-4/+2
| | | | | | following the trailing section are implicitly `Ns'd. Based on a patch submitted by Ingo Schwarze.
* Fix in handling Vt in SYNOPSIS with trailing punctuation. Spotted by Joerg ↵Kristaps Dzonsons2010-01-301-2/+30
| | | | Sonnenberger.
* Big check-in of compatibility layer. This should work on most major ↵Kristaps Dzonsons2010-01-011-5/+5
| | | | architectures. Thanks to Joerg Sonnenberger.
* `Bl' lets `Sm' slip by as a child. Noted by Ingo Schwarze.Kristaps Dzonsons2010-01-011-4/+11
|
* Added mandoc_a2time() for proper date conversion.Kristaps Dzonsons2009-11-021-2/+4
| | | | | 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-1/+3
| | | | Fixed validation of -ohang lists as having no widths.
* Using perror() instead of fprintf for failure from library functions.Kristaps Dzonsons2009-10-311-2/+1
|
* Full `%U' support.Kristaps Dzonsons2009-10-261-7/+6
| | | | | | | `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-1/+4
|
* Fix adding -centred to `Bd' types (thanks to Joerg Sonnenberger).Kristaps Dzonsons2009-10-221-1/+3
|
* Fixed `-file' argument to `Bd', which is NOT a type, but instead just an ↵Kristaps Dzonsons2009-10-191-3/+1
| | | | argument.
* Beginning of mdoc.7 full-reference in place.Kristaps Dzonsons2009-10-191-3/+3
|
* Removed restrictions on `sp' (maybe a warning, someday, but for now be simple).Kristaps Dzonsons2009-10-181-34/+4
|
* Added warning about specifying list arguments before type (suggested by ↵Kristaps Dzonsons2009-10-151-7/+15
| | | | Joerg Sonnenberg).
* Fixed segfault in `Rs' empty block.Kristaps Dzonsons2009-09-241-2/+2
|
* Added EBADCHILD error (bad child of parent context).Kristaps Dzonsons2009-09-241-5/+49
| | | | | `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-16/+3
| | | | | | 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-1/+2
|
* `An' gives correct error message in encountering arguments/parameters.Kristaps Dzonsons2009-07-241-2/+2
|
* Bl -column now accepts columns = (1 + stated columns), which covers all ↵Kristaps Dzonsons2009-07-231-2/+2
| | | | remaining column usage/abuse I can see.
* Undocumented behaviour in groff: `Bl -column' implies `-compact'.Kristaps Dzonsons2009-07-201-5/+14
| | | | mandoc now allows fewer columns than the -width specifies.
* More clarity fixes in mdoc.7.Kristaps Dzonsons2009-07-181-2/+2
| | | | Sm/Sy argument to `Bf' fixed (schwarze@openbsd).
* `sp' documented: validates & produces correct output.Kristaps Dzonsons2009-07-171-2/+4
|
* Removed EARGVPARM (superfluous, overly error-generating).Kristaps Dzonsons2009-07-171-4/+35
| | | | Added `sp' handler.
* Documented `br' macro in mdoc.7.Kristaps Dzonsons2009-07-171-4/+3
| | | | 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-1/+3
|
* Err/warn fix (schwarze@openbsd.org).Kristaps Dzonsons2009-07-131-121/+111
| | | | Lots of whitespace churn in getting functions aligned nicely.
* Replacement of `Lb' in mdoc_action.c.Kristaps Dzonsons2009-07-121-2/+14
| | | | | | 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-2/+2
| | | | Made bad standards into an error (were a warning).
* Check for NAME sanity fixed (last named section -> last section).Kristaps Dzonsons2009-07-121-2/+2
|
* Added back in MDOC_TEXT stipulation in NAME check (post-Nm punctuation, duh).Kristaps Dzonsons2009-07-121-1/+3
|
* `Nd' is now a BFI (was an ELEM). Noted by joerg@netbsd.org, behaviour ok ↵Kristaps Dzonsons2009-07-121-5/+6
| | | | jmc@openbsd.org, etc.
* Fixed mdoc_nwarn/mdoc_nerr considering themselves err/warn instead of ↵Kristaps Dzonsons2009-07-121-3/+5
| | | | 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-4/+2
|
* Small clean-ups in error message usage.VERSION_1_7_23Kristaps Dzonsons2009-07-071-5/+3
| | | | Version.
* Consolidated all err/warnings into mdoc.c via libmdoc.h.Kristaps Dzonsons2009-07-061-222/+74
|
* Fix in MDOC_IGN_CHARS ref.Kristaps Dzonsons2009-07-061-2/+2
|
* Consolidated mdoc_validate.c pwarn into perr (slowly phasing out per-file ↵Kristaps Dzonsons2009-07-061-110/+84
| | | | pre-formatted error strings).