Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove enum mdocargerr from phrase() (unused). | Kristaps Dzonsons | 2010-05-31 | 1 | -0/+1 |
| | | | | | | | | | | | | | | 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'. | ||||
* | Migrate `Bl -column' phrases to be MDOC_BODY instead of MDOC_HEAD. This | Kristaps Dzonsons | 2010-05-30 | 1 | -7/+9 |
| | | | | | | | | | | 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. | ||||
* | Make check for case a little more intuitive (suggested by joerg@). | Kristaps Dzonsons | 2010-05-30 | 1 | -3/+1 |
| | |||||
* | Made `Dt' default to LOCAL and UNKNOWN instead of local and unknown (note case). | Kristaps Dzonsons | 2010-05-30 | 1 | -3/+24 |
| | | | | | | | | Have `Dt' default to UNKNOWN if it's an empty string. Raise a warning if `Dt' title isn't capitalised. Sync'd `Dt' documentation with reality. | ||||
* | Documented `Ud'. | Kristaps Dzonsons | 2010-05-26 | 1 | -5/+16 |
| | | | | | | | | | | | 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 Dzonsons | 2010-05-26 | 1 | -2/+1 |
| | | | | | | | | | 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). | ||||
* | Smarten BADCHAR check to allow ASCII_HYPH. | Kristaps Dzonsons | 2010-05-25 | 1 | -1/+1 |
| | | | | Fix index.sgml not to puke (the relevant section will be re-written for the release anyway, but I hate seeing errors). | ||||
* | Lifted 64-byte max width for Sh (now BUFSIZ). | Kristaps Dzonsons | 2010-05-24 | 1 | -3/+4 |
| | |||||
* | Increase performance by stashing the list type in struct mdoc_node. | Kristaps Dzonsons | 2010-05-17 | 1 | -18/+10 |
| | | | | | | | This will eventually be used so that mdoc_macro can known whether to dump list line arguments into the body (`Bl -column' overflowing). Remove a2list() and arg_listtype() because of this. | ||||
* | Enable the unified error/warning enumeration in mandoc.h that's | Kristaps Dzonsons | 2010-05-17 | 1 | -98/+148 |
| | | | | | | | | | | | stringified in main.c. Allow `An' to handle an argument and child (with a warning). Allow `Rv' and `Ex' to work without a prior `Nm' as groff does (with a warning). Allow inconsistent column syntax to only raise a warning. | ||||
* | LIBRARY can also occur in section 9. | Kristaps Dzonsons | 2010-05-15 | 1 | -9/+8 |
| | | | | | | All manual sections (unknown, 3p, 3f, etc.) correctly handled by -mdoc. Useful warning printed if unknown manual section. Checking for manual sections (e.g., LIBRARY) checks only first character, so 3p, 3f, etc. are free. | ||||
* | Remove in-manual-section warnings for Fd and Lb (ok joerg@, schwarze@). | Kristaps Dzonsons | 2010-05-14 | 1 | -47/+3 |
| | |||||
* | Backed out check for `Ex' manual sec (ok schwarze@, joerg@), in turn backing ↵ | Kristaps Dzonsons | 2010-05-14 | 1 | -35/+1 |
| | | | | out check_msec() and deps. | ||||
* | "Warn on unknown argument for .At and print it like [new] groff." (patch by ↵ | Kristaps Dzonsons | 2010-05-14 | 1 | -1/+1 |
| | | | | | | | Joerg Sonnenberger, ed. Kristaps) Keep short-log of commits in index.sgml. Document compatibility with new/old groff in mdoc.7. | ||||
* | "Invalid standard argument should be a warning. Just leak it into the | Kristaps Dzonsons | 2010-05-14 | 1 | -1/+1 |
| | | | | output." (patch by Joerg Sonnenberger) | ||||
* | "If the last column wasn't specified, it is auto-sized." (patch by Joerg ↵ | Kristaps Dzonsons | 2010-05-14 | 1 | -2/+2 |
| | | | | Sonnenberger) | ||||
* | mdoc_atosec -> mdoc_str2sec (consistent with str2 being different from a2). | Kristaps Dzonsons | 2010-05-12 | 1 | -4/+7 |
| | | | | | Changed ordering of sections (EXIT STATUS moved around), argued for by Ulrich Sporlein. Fixed mdoc_str2sec not to use weird structure. | ||||
* | Remove -fno-ign-chars as well-argued by Ingo Schwarze. Patch by Ingo ↵ | Kristaps Dzonsons | 2010-05-09 | 1 | -13/+2 |
| | | | | Schwarze, too. | ||||
* | Lint fixes (type-safety for enums via -cefuh). | Kristaps Dzonsons | 2010-05-08 | 1 | -1/+1 |
| | |||||
* | Removed manual-section-calling restrictions for `Cd' and and `Ex' (requested ↵ | Kristaps Dzonsons | 2010-04-07 | 1 | -13/+1 |
| | | | | by Joerg Sonnenberger). | ||||
* | Allowing `Cd' to be in section 9 (noted by Joerg Sonnenberger). | Kristaps Dzonsons | 2010-04-07 | 1 | -1/+1 |
| | |||||
* | Removed warning for `Er' when not used in certain sections (pointed out by ↵ | Kristaps Dzonsons | 2010-04-06 | 1 | -10/+1 |
| | | | | Joerg Sonnenberger). | ||||
* | Allow `Bd' to accept (warn about then ignore) in-line arguments. | Kristaps Dzonsons | 2010-04-06 | 1 | -1/+3 |
| | |||||
* | Cleaned up post_bl_head() and fixed erroneous reporting of child nodes. | Kristaps Dzonsons | 2010-04-06 | 1 | -11/+12 |
| | |||||
* | Let `Bl' accept arguments on the head line with a warning (these are ignored ↵ | Kristaps Dzonsons | 2010-04-06 | 1 | -2/+3 |
| | | | | in the front-end device) (noted by Theo de Raadt). | ||||
* | Merged patch by Ingo Schwarze allowing `Xr' to pass through with no ↵ | Kristaps Dzonsons | 2010-04-03 | 1 | -1/+1 |
| | | | | arguments (emits warning of course). | ||||
* | Modified version of Ingo Schwarze's patch so that -man doesn't puke when a ↵ | Kristaps Dzonsons | 2010-04-03 | 1 | -0/+2 |
| | | | | TH isn't specified. | ||||
* | Merged Ingo Schwarze's patch (plus documentation) for removing extraneous ↵ | Kristaps Dzonsons | 2010-04-03 | 1 | -2/+13 |
| | | | | list types, which happens fairly often. | ||||
* | Merging patch by Ingo Schwarze. | Kristaps Dzonsons | 2010-04-03 | 1 | -2/+3 |
| | |||||
* | Macro types enum-ated (enum mdoct) (for easier debugging in gdb of "tok" ↵ | Kristaps Dzonsons | 2010-03-31 | 1 | -2/+2 |
| | | | | | | | 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 Dzonsons | 2010-02-17 | 1 | -3/+1 |
| | | | | | | 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 Dzonsons | 2010-01-30 | 1 | -1/+29 |
| | | | | Sonnenberger. | ||||
* | Big check-in of compatibility layer. This should work on most major ↵ | Kristaps Dzonsons | 2010-01-01 | 1 | -4/+4 |
| | | | | architectures. Thanks to Joerg Sonnenberger. | ||||
* | `Bl' lets `Sm' slip by as a child. Noted by Ingo Schwarze. | Kristaps Dzonsons | 2010-01-01 | 1 | -3/+10 |
| | |||||
* | Added mandoc_a2time() for proper date conversion. | Kristaps Dzonsons | 2009-11-02 | 1 | -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 Dzonsons | 2009-10-31 | 1 | -0/+2 |
| | | | | Fixed validation of -ohang lists as having no widths. | ||||
* | Using perror() instead of fprintf for failure from library functions. | Kristaps Dzonsons | 2009-10-31 | 1 | -1/+0 |
| | |||||
* | Full `%U' support. | Kristaps Dzonsons | 2009-10-26 | 1 | -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 Dzonsons | 2009-10-24 | 1 | -0/+3 |
| | |||||
* | Fix adding -centred to `Bd' types (thanks to Joerg Sonnenberger). | Kristaps Dzonsons | 2009-10-22 | 1 | -0/+2 |
| | |||||
* | Fixed `-file' argument to `Bd', which is NOT a type, but instead just an ↵ | Kristaps Dzonsons | 2009-10-19 | 1 | -2/+0 |
| | | | | argument. | ||||
* | Beginning of mdoc.7 full-reference in place. | Kristaps Dzonsons | 2009-10-19 | 1 | -2/+2 |
| | |||||
* | Removed restrictions on `sp' (maybe a warning, someday, but for now be simple). | Kristaps Dzonsons | 2009-10-18 | 1 | -33/+3 |
| | |||||
* | Added warning about specifying list arguments before type (suggested by ↵ | Kristaps Dzonsons | 2009-10-15 | 1 | -6/+14 |
| | | | | Joerg Sonnenberg). | ||||
* | Fixed segfault in `Rs' empty block. | Kristaps Dzonsons | 2009-09-24 | 1 | -1/+1 |
| | |||||
* | Added EBADCHILD error (bad child of parent context). | Kristaps Dzonsons | 2009-09-24 | 1 | -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 Dzonsons | 2009-08-20 | 1 | -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 Dzonsons | 2009-07-25 | 1 | -0/+1 |
| | |||||
* | `An' gives correct error message in encountering arguments/parameters. | Kristaps Dzonsons | 2009-07-24 | 1 | -1/+1 |
| | |||||
* | Bl -column now accepts columns = (1 + stated columns), which covers all ↵ | Kristaps Dzonsons | 2009-07-23 | 1 | -1/+1 |
| | | | | remaining column usage/abuse I can see. |