Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix man.7 to include AT and UC in its syntax table. | Kristaps Dzonsons | 2010-05-25 | 1 | -1/+2 |
| | |||||
* | Added roff.3, which documents the roff parser interface. | Kristaps Dzonsons | 2010-05-25 | 4 | -20/+175 |
| | | | | | | | | | | | Small fix in mdoc.3 and man.3 pointing to old mdoc_cb and man_cb. Fix in Makefile adding mandoc.h to HEADS. Collapsed all HTML files into HTMLS variable (too confusing otherwise). Removed "htmls" command from Makefile (only I used it and it's just taking up space). | ||||
* | Clean-up: added `Nm mdoc' to mdoc.3. | Kristaps Dzonsons | 2010-05-25 | 2 | -53/+54 |
| | | | | | | Clean-up: new-sentence, new-line for man.3. Clean-up: alpha-ordered man.3 `Nm' sections and prototypes. | ||||
* | Clean-up: new-sentence, new-line for mdoc.3. | Kristaps Dzonsons | 2010-05-25 | 1 | -105/+59 |
| | | | | | | | Clean-up: removed CAVEATS section (this should be either in the TODO file or in mdoc.7 documenting mandoc incompatibilities). Clean-up: alpha-ordered `Nm' and section headers. | ||||
* | Noted areas where performance can be increased. | Kristaps Dzonsons | 2010-05-25 | 1 | -0/+16 |
| | |||||
* | Smarten BADCHAR check to allow ASCII_HYPH. | Kristaps Dzonsons | 2010-05-25 | 3 | -2/+3 |
| | | | | Fix index.sgml not to puke (the relevant section will be re-written for the release anyway, but I hate seeing errors). | ||||
* | Forgot to add regression tests. | Kristaps Dzonsons | 2010-05-25 | 2 | -0/+35 |
| | |||||
* | Modified version of Ingo Schwarze's patch for hyphen-breaking. | Kristaps Dzonsons | 2010-05-25 | 8 | -23/+69 |
| | | | | | | | Breakable hyphens are cued in the back-ends (with ASCII_HYPH) and acted upon in term.c or ignored in html.c. Also cleaned up XML decl printing (no need for extra vars). | ||||
* | recognize ".if n" as true; | Ingo Schwarze | 2010-05-24 | 2 | -7/+26 |
| | | | | | | nothing fancy yet, no negation, no grammer, just that one letter; from OpenBSD; "looks fine" kristaps@ | ||||
* | provide stubs to ignore .ds, .rm and .tr, | Ingo Schwarze | 2010-05-24 | 2 | -0/+34 |
| | | | | | | which occur in the standard pod2man preamble; from OpenBSD; "sounds good" joerg@, "can be checked in" kristaps@ | ||||
* | sync to OpenBSD: | Ingo Schwarze | 2010-05-24 | 3 | -11/+18 |
| | | | | | | | save the visual cursor position in term_flushln() and use that to avoid multiple blank lines in nested lists while still putting subsequent empty list tags each on their own line; "go ahead" kristaps@ | ||||
* | Handle literal tab characters both in literal context (.Bd -literal) | Ingo Schwarze | 2010-05-24 | 3 | -2/+28 |
| | | | | | | | | and outside. In literal context, tab stops are at each eigth column; outside, they are at each fifth column. from OpenBSD mdoc_term.c rev. 1.75; "commit" kristaps@ | ||||
* | .Bl -tag -compact | Ingo Schwarze | 2010-05-24 | 1 | -9/+0 |
| | | | | | | .Sm off .It ... fixed by joerg@ in mdoc_action.c bsd.lv 1.61, OpenBSD 1.38 | ||||
* | fix an obvious typo in print_bvspace(): | Ingo Schwarze | 2010-05-24 | 1 | -1/+1 |
| | | | | rev. 1.125 broke vertical spacing in .Bl -column | ||||
* | rewrite the main mdoc text parser, mdoc_ptext(), | Ingo Schwarze | 2010-05-24 | 1 | -38/+51 |
| | | | | | | | | making it easier to understand and fixing various bugs: * correctly strip whitespace from the end of text lines * issue consistent warnings regarding trailing spaces and tabs * escaped backslashes no longer escape the following character ok kristaps@ | ||||
* | Plug second meta.source leak in `UT' handling. | Kristaps Dzonsons | 2010-05-24 | 1 | -0/+3 |
| | |||||
* | Lifted 64-byte max width for Sh (now BUFSIZ). | Kristaps Dzonsons | 2010-05-24 | 1 | -3/+4 |
| | |||||
* | Fixed memory leak for `AT' (-man input). | Kristaps Dzonsons | 2010-05-24 | 1 | -0/+3 |
| | |||||
* | Fix segfault in mixing old enum types for -Thtml -mdoc. | Kristaps Dzonsons | 2010-05-24 | 1 | -2/+2 |
| | |||||
* | remove unused enum merr; | Ingo Schwarze | 2010-05-24 | 1 | -56/+0 |
| | | | | ok joerg@ | ||||
* | If a .Bl -tag lacks a -width, skip all non-It macros for the implicit | Joerg Sonnenberger | 2010-05-24 | 1 | -2/+5 |
| | | | | | | calculation. E.g. .Sm can occur as direct child of .Bl. OK schwarze@ | ||||
* | fix an obvious oversight introduced in rev. 1.5: | Ingo Schwarze | 2010-05-24 | 1 | -1/+1 |
| | | | | | MANDOCERR_BODYLOST is not intended to be fatal; required to unbreak the OpenBSD build | ||||
* | Fix 1.125: Add missing return in termp_nm_pre. | Joerg Sonnenberger | 2010-05-22 | 1 | -0/+1 |
| | |||||
* | Test .SH with only empty paragraph. Don't test .IP without body. | Joerg Sonnenberger | 2010-05-22 | 1 | -0/+3 |
| | |||||
* | lines containing blank characters FIXED in OpenBSD, | Ingo Schwarze | 2010-05-18 | 1 | -1/+12 |
| | | | | and add one new .Bl -tag issue reported by Joerg | ||||
* | Increase performance by stashing the list type in struct mdoc_node. | Kristaps Dzonsons | 2010-05-17 | 6 | -191/+169 |
| | | | | | | | 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. | ||||
* | Added tech@ mailing list. | Kristaps Dzonsons | 2010-05-17 | 1 | -1/+8 |
| | |||||
* | Enable the unified error/warning enumeration in mandoc.h that's | Kristaps Dzonsons | 2010-05-17 | 31 | -532/+534 |
| | | | | | | | | | | | 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. | ||||
* | Multiple empty .PPs don't add a vspace either | Joerg Sonnenberger | 2010-05-17 | 1 | -0/+3 |
| | |||||
* | Entry for .AT and .UC | Joerg Sonnenberger | 2010-05-17 | 1 | -2/+9 |
| | |||||
* | Add support for .AT. Properly implement .UC. Add regress tests. | Joerg Sonnenberger | 2010-05-17 | 20 | -2/+156 |
| | |||||
* | Tests for sane and insane handling of lines before and after .SH/.SS | Joerg Sonnenberger | 2010-05-17 | 2 | -0/+23 |
| | |||||
* | groff uses three vspaces before the footer too. | Joerg Sonnenberger | 2010-05-17 | 1 | -0/+2 |
| | |||||
* | Documented ie/el. | Kristaps Dzonsons | 2010-05-17 | 4 | -8/+38 |
| | | | | | Installing roff.7 and added it to index.sgml. Small fix for `D1' and `Bd' in -Thtml. | ||||
* | Use a default prefix of /usr/local. Honour DESTDIR for install targets. | Joerg Sonnenberger | 2010-05-17 | 1 | -19/+20 |
| | |||||
* | The function term_flushln() had effectively forked in OpenBSD. | Ingo Schwarze | 2010-05-17 | 1 | -44/+41 |
| | | | | | | | | | | | | | | | | This is the bsd.lv part of the main step to bring it back in sync. At the same time, this prevents trailing whitespace in the output: We delay writing blanks until we are sure printable characters follow. This is achieved by * remembering the end of the word instead of its length * and not using vbl any longer for the control of line breaking * such that vbl can sum up all kinds of white space * before writing a word, printing all the blanks collected in vbl * within the word, adding NBSP chars to vbl, then continuing with the word * after the word, adding blanks to vbl, then starting the next word "looks good" kristaps@ | ||||
* | Full support for ie/el. This completes the initial roff support. | Kristaps Dzonsons | 2010-05-17 | 25 | -76/+316 |
| | | | | | Added test files for ie/el. Using `if 0' as a baseline for "false" roff instructions instead of `if t'. | ||||
* | Oops: forgot to make roff_cblock() understand the new macros. | Kristaps Dzonsons | 2010-05-17 | 1 | -1/+16 |
| | |||||
* | libroff now intelligently throws away `am', `ami', `am1', `de', `dei', | Kristaps Dzonsons | 2010-05-17 | 2 | -16/+83 |
| | | | | and `de1'. This is also documented in roff.7. | ||||
* | libroff now is aware of which sub-nodes should be interpreted even in a | Kristaps Dzonsons | 2010-05-17 | 4 | -81/+177 |
| | | | | | | | | | | conditional-negative context so as to preserve structural integrity. Initial "rules" (deny/allow) are now inherited for future work in evaluating conditionals. Lint-fix noted by Joerg. Added regression tests for zany constructs. | ||||
* | Add a test case for nesting of .RS/.RE | Joerg Sonnenberger | 2010-05-16 | 1 | -0/+16 |
| | |||||
* | `ig' support in all its glory. Try | Kristaps Dzonsons | 2010-05-16 | 12 | -30/+290 |
| | | | | | | | | | | | | | | | | | | .ig ig asdf .ig fdsa .. or .ig if asdf .if n \ foo for a laugh. It all works. Lots of regression tests supporting this and documentation for the same. | ||||
* | Add a basic regression test for .Bl -bullet and the various interactions | Joerg Sonnenberger | 2010-05-16 | 1 | -0/+64 |
| | | | | with .Bd. | ||||
* | Regression tests in place for `.if' in libroff. | Kristaps Dzonsons | 2010-05-16 | 12 | -4/+257 |
| | | | | | Check against some strange `.if' constructs I missed. Added initial roff.7 manual. | ||||
* | Fully skip first and last line for the purpose of cmp. | Joerg Sonnenberger | 2010-05-16 | 1 | -3/+6 |
| | |||||
* | Skip first line when comparing output. | Joerg Sonnenberger | 2010-05-16 | 1 | -1/+3 |
| | |||||
* | mandoc should be a variable. | Kristaps Dzonsons | 2010-05-16 | 1 | -2/+2 |
| | | | | Consensus is on using a *.in for regression tests (symmetry-broken by Ingo). | ||||
* | Remove temp files on success. | Joerg Sonnenberger | 2010-05-16 | 1 | -0/+1 |
| | |||||
* | Add a basic regression testing script. | Joerg Sonnenberger | 2010-05-16 | 1 | -0/+39 |
| | |||||
* | Re-admit the simple case of `.ig' that works with groff's stranger invocations. | Kristaps Dzonsons | 2010-05-16 | 1 | -123/+71 |
| |