summaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_term.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed zero-length width string causing assertion (defaulting to 10 -- this ↵Kristaps Dzonsons2009-07-201-1/+5
| | | | needs work).
* Undocumented behaviour in groff: `Bl -column' implies `-compact'.Kristaps Dzonsons2009-07-201-1/+4
| | | | mandoc now allows fewer columns than the -width specifies.
* Removed superfluous NOSPACE in bd post.Kristaps Dzonsons2009-07-191-5/+1
|
* termpair flags unset before post, after body (suggested by schwarze@openbsd).Kristaps Dzonsons2009-07-191-3/+12
|
* `sp' documented: validates & produces correct output.Kristaps Dzonsons2009-07-171-2/+24
|
* Added `br' and `sp' macros (requested by joerg@netbsd.org, jmc@openbsd.org).Kristaps Dzonsons2009-07-171-1/+14
|
* Off-by-one space fixed for `Bl -diag'.Kristaps Dzonsons2009-07-161-4/+2
|
* Fix to presentation date (Ulrich Sporlein)Kristaps Dzonsons2009-07-151-2/+2
|
* Using \(en for OpenBSD `Nd' (compromise with jmc@openbsd.org).VERSION_1_8_0Kristaps Dzonsons2009-07-141-7/+2
|
* Cleaned up arg_width and arg_column functions.Kristaps Dzonsons2009-07-141-17/+28
| | | | | Added XXn and XXm support to -offset (not documented in mdoc.samples, but used in mdoc.samples!). Lint warnings fixed.
* Removed unnecessary save/restore of style around list prefix.Kristaps Dzonsons2009-07-141-17/+24
| | | | Added -hang list support.
* Err/warn fix (schwarze@openbsd.org).Kristaps Dzonsons2009-07-131-6/+19
| | | | Lots of whitespace churn in getting functions aligned nicely.
* Replacement of `Lb' in mdoc_action.c.Kristaps Dzonsons2009-07-121-20/+2
| | | | | | 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-15/+2
| | | | Made bad standards into an error (were a warning).
* Moved mdoc_a2att() into libmdoc (replacement happens in mdoc_action.c).Kristaps Dzonsons2009-07-121-21/+2
|
* Removed superfluous FIXMEs in mdoc_term.c.Kristaps Dzonsons2009-07-121-13/+7
|
* Fixed `Fo' superfluous space before `('. Noted groff compatibility in mdoc.7.Kristaps Dzonsons2009-07-121-3/+2
|
* `Vt' macro behaves [more] properly when in the SYNOPSIS section.Kristaps Dzonsons2009-07-121-2/+6
|
* Replaced ugly macro function declarations in mdoc_term with real [sorted] ones.Kristaps Dzonsons2009-07-121-79/+87
|
* Removed rmargin from termpair (right in print_node()).Kristaps Dzonsons2009-07-121-9/+6
|
* Removed offset from termpair (much simpler & cleaner).Kristaps Dzonsons2009-07-121-22/+13
| | | | | Put new offset market in print_node(). Some fixes of forgotten ttypes[TTYPE_XXXX] (just TTYPE).
* Removed ambiguous TERMPAIR_SETFLAG from mdoc_term.c (pairs/flags must be ↵Kristaps Dzonsons2009-07-121-51/+39
| | | | manually set now, and are).
* GNU/Linux also uses \- for Nd (ew).Kristaps Dzonsons2009-07-121-3/+3
|
* Consolidated Bx/Ox/Nx/etc. into one function.Kristaps Dzonsons2009-07-121-65/+35
|
* `Nd' is now a BFI (was an ELEM). Noted by joerg@netbsd.org, behaviour ok ↵Kristaps Dzonsons2009-07-121-1/+4
| | | | jmc@openbsd.org, etc.
* Noted dissent with \- for OpenBSD.Kristaps Dzonsons2009-07-121-2/+6
|
* Added \(hy symbol.Kristaps Dzonsons2009-07-121-1/+5
| | | | | | Properly categorised \- as an arithmetic minus sign. Nd produces \(em instead of old \-. OpenBSD ifdef'd to use old \- after Nd (ok: jmc@openbsd.org).
* Made `In' handling work in new-groff style (see mdoc.samples).Kristaps Dzonsons2009-07-071-3/+14
|
* Backed out "-width indent" and "-width indent-two", which aren'tKristaps Dzonsons2009-07-051-5/+1
| | | | | supported by any groff mdoc tmac (and erroneously used in many manuals, hence the confusion).
* Fixed -offset indent-two (schwarze@openbsd.org).Kristaps Dzonsons2009-07-041-2/+2
|
* Fixed -offset left (schwarze@openbsd.org).Kristaps Dzonsons2009-07-041-3/+3
| | | | Fixed bogus setting (instead of increment) of offsets.
* Lint fixes.VERSION_1_7_20Kristaps Dzonsons2009-06-221-2/+3
| | | | Version up.
* Noted .Cd tabs-ok issue (will fix later).Kristaps Dzonsons2009-06-221-4/+8
| | | | Added single space to -diag lists.
* Added "Spacing" part of "Punctuation and Spacing" in mandoc.1 manual.Kristaps Dzonsons2009-06-221-9/+11
| | | | | | | Fixed `Ds' meta-macro default width. Fixed -width and -offset "indent", "indent-two", and "left" widths. Fixed -width and -offset literal-word and numeric widths. Fixed off-by-one errors in whitespace output (schwarze@openbsd.org).
* Special characters, e.g. \(ae, are now correctly rendered in the current ↵Kristaps Dzonsons2009-06-171-3/+8
| | | | font decoration.
* Removed MDOC___: moved MDOC_Ap to its index (comments not passed into mdoc ↵Kristaps Dzonsons2009-06-161-5/+7
| | | | parser).
* Removed superfluous ifdef around strftime (schwarze@openbsd.org).Kristaps Dzonsons2009-06-151-5/+1
| | | | Bumped version (this was supposed to be in 1.7.17).
* `Lk' is correctly handled as CALLABLE (note groff munges nested output).Kristaps Dzonsons2009-06-121-4/+9
| | | | | | | `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.
* Added mdoc.template (from NetBSD -- unlicensed??).Kristaps Dzonsons2009-06-111-19/+21
| | | | | Moved MDOC_TEXT type checks into assertions (should be caught by parser). Added some FIXME notes in mdoc output (largely that things should be asserted, not caught).
* Added "left" -offset tag.Kristaps Dzonsons2009-06-111-5/+9
|
* Documented some un-clear parts of main.c.Kristaps Dzonsons2009-06-111-133/+31
| | | | | Fixed footer to be new-groff style (OS DATE OS). Removed sanity check from mdoc_term (unnecessary).
* Fixed email address in manual AUTHOR reference.Kristaps Dzonsons2009-06-111-2/+2
| | | | | | Set max right margin to 80 columns (schwarze@openbsd.org). Fixed centre-field heading position (schwarze@openbsd.org). Also fixed -Tman centre-field.
* Fixed license email address.Kristaps Dzonsons2009-06-101-2/+2
|
* Using proper license template (const).Kristaps Dzonsons2009-04-121-12/+10
|
* Manual .Dt fields CAPITALISED.Kristaps Dzonsons2009-04-121-2/+2
| | | | | | | | Indent set to 5 chars (nroff compat). Half-indent set to 3 chars (nroff compat). Default behaviour is loose-y (ignore macro/char/escape). Added -fstrict. Added unknown-character ignoring.
* Updated manuals.7.Kristaps Dzonsons2009-04-031-3/+3
| | | | Fixed .Dl display.
* All macro-invocations, for consistency, begin with `.' in documentation.Kristaps Dzonsons2009-03-261-24/+16
| | | | | Fixed \\ -> \e in manual documentation. All preliminary -man macros in place.
* Fixed after-NLINE-error assertion.Kristaps Dzonsons2009-03-261-1/+6
| | | | | Scanned over all manuals with valgrind. Version up.
* Initial front-end formatting for -man pages.Kristaps Dzonsons2009-03-261-0/+2247