summaryrefslogtreecommitdiffstats
path: root/tree.c
Commit message (Collapse)AuthorAgeFilesLines
* Support for badly nested blocks, written around the time ofIngo Schwarze2010-06-291-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | the Rostock mandoc hackathon and tested and polished since, supporting constructs like: .Ao Bo Ac Bc (exp breaking exp) .Aq Bo eol Bc (imp breaking exp) .Ao Bq Ac eol (exp breaking imp) .Ao Bo So Bc Ac Sc (double break, inner before outer) .Ao Bo So Ac Bc Sc (double break, outer before inner) .Ao Bo Ac So Bc Sc (broken breaker) .Ao Bo So Bc Do Ac Sc Dc (broken double breaker) There are still two known issues which are tricky: 1) Breaking two identical explicit blocks (Ao Bo Bo Ac or Aq Bo Bo eol) fails outright, triggering a bogus syntax error. 2) Breaking a block by two identical explicit blocks (Ao Ao Bo Ac Ac Bc or Ao Ao Bq Ac Ac eol) still has a minor rendering error left: "<ao1 <ao2 [bo ac2> ac1> bc]>" should not have the final ">". We can fix these later in the tree, let's not grow this diff too large. "get it in" kristaps@
* Churn-ish check-in getting mdoc_parseln() and man_parseln() to accept aKristaps Dzonsons2010-06-261-0/+1
| | | | const struct regset pointer. No functionality.
* Churn as I finish email address migration kth.se -> bsd.lv.Kristaps Dzonsons2010-06-191-1/+1
|
* Enable the unified error/warning enumeration in mandoc.h that'sKristaps Dzonsons2010-05-171-0/+1
| | | | | | | | | | | 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.
* Big check-in of compatibility layer. This should work on most major ↵Kristaps Dzonsons2010-01-011-0/+4
| | | | architectures. Thanks to Joerg Sonnenberger.
* More lint fixes.Kristaps Dzonsons2009-10-301-1/+0
| | | | Removed err.h from inclusions (less main.c--still in progress).
* Added time.h to various files for FreeBSD compilation (thanks Ulrich Sporlein).Kristaps Dzonsons2009-10-261-0/+1
|
* Moved output definitions into main.h.Kristaps Dzonsons2009-10-131-0/+1
| | | | Pushed terminal_{mdoc,man} into {mdoc,man}_term.c.
* Made tree/term/out() functions return void.Kristaps Dzonsons2009-09-161-4/+2
| | | | Put err() functions back into front-ends (no use making it needlessly complex).
* Significant overhaul in libman. Macros are now block- and line-scoped (withKristaps Dzonsons2009-08-131-0/+15
| | | | | | | | next-line scope extensions possible). man.7 reflects block and line scoping, and also includes a REFERENCE section that will be used as a template for the big mdoc reference. Many fixes in next-line behaviour for both inline and block macros. Added some macros for compatibility (from me.7). Corrected quoted-literal handling for libman.
* Fixed license email address.Kristaps Dzonsons2009-06-101-1/+1
|
* Using proper license template (const).Kristaps Dzonsons2009-04-121-12/+10
|
* Proper resetting of memory.Kristaps Dzonsons2009-04-031-14/+20
| | | | Array boundary fixed (-W).
* -man printing linked to -Ttree.Kristaps Dzonsons2009-03-231-6/+58
|
* NetBSD lintified.Kristaps Dzonsons2009-03-191-0/+1
|
* Split mdocterm.c -> main.c terminal.c.Kristaps Dzonsons2009-03-191-0/+137
| | | | | | Abstracted output with -T selector (default ascii). Name change: mdocterm -> mandoc. Re-imported tree with -Ttree.
* termact.c -> term.cKristaps Dzonsons2009-02-231-132/+0
| | | | | | term.c -> mdocterm.c tree.c -> mdoctree.c Fixed/finished mmain.h.
* Split mdocml -> mdocterm, mdoctree (new manuals, etc.).Kristaps Dzonsons2009-02-211-2/+1
| | | | Escape-recognition term.c.
* More flesh in terminal-encoder.Kristaps Dzonsons2009-02-201-1/+3
|
* Re-added tree.c (for now).Kristaps Dzonsons2009-02-201-0/+131
| | | | Added initial terminal-output filter (term.c).
* Removed (moving) tree.c.Kristaps Dzonsons2009-02-201-131/+0
|
* Separating output filters.Kristaps Dzonsons2009-01-171-8/+38
|
* Initial separation of tree/mdocml.1.Kristaps Dzonsons2009-01-161-0/+101
Finished mdoc.3. Broken build: mdocml.c.