summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
* Clean up parsing of delimiters in -mdoc. First, remove the "dowarn"Kristaps Dzonsons2011-04-197-204/+173
| | | | | | | | variable from mandoc_getarg() so that it prints the warning every time. Then, remove the warning from args_checkpunct(). This way, warnings are being posted at the correct time. This makes the flag argument to mdoc_zargs() superfluous, so make it be zero when it's invoked. Finally, move the args() flags into mdoc_argv.c and make them enums.
* Add more documentation bits to mandoc.3.Kristaps Dzonsons2011-04-191-2/+74
|
* .Pp in .Bl -columnIngo Schwarze2011-04-171-1/+5
|
* The semantics of .Bk was described incorrectlyIngo Schwarze2011-04-171-4/+5
| | | | | | for the case of multiple sibling macros on a single input line. Issue found investigating a question from sobrado@. "I like this diff" kristaps@
* Use mandoc_getarg() for the regular case of processing unquotedKristaps Dzonsons2011-04-171-20/+4
| | | | arguments in -mdoc documents.
* Get mdoc_argv.c ready to use [some of] mandoc_getarg() by giving saidKristaps Dzonsons2011-04-175-23/+25
| | | | function a parameter to suppress warnings.
* mini-bug at eol after .Bl -column .ItIngo Schwarze2011-04-161-1/+11
|
* lines in tables and .RS/.RE nestingIngo Schwarze2011-04-161-1/+9
|
* Check in fix to roff conditional if/else stack running out of space.Kristaps Dzonsons2011-04-131-34/+25
| | | | | | | This transforms the stack pop to occur prior to body execution, instead of afterward. Floated to tech@ without response, but it makes sense that this is alright and doesn't cause problems during extensive testing.
* Back out commit to roff.c that needs to go in on its own.Kristaps Dzonsons2011-04-131-25/+34
|
* Remove TODO from prior commit of lifting warnings from `Sh', `Ss', `SH',Kristaps Dzonsons2011-04-132-42/+26
| | | | and `SS' bodies.
* Remove the warning for empty bodies of `Sh', `Ss', `SH', and `SS'. ThisKristaps Dzonsons2011-04-132-11/+8
| | | | | | | | | | | prompted by a TODO by schwarze@, originally from Gleydson Soares, that an empty `SS' was raising an error (it hasn't for some time). It makes sense these shouldn't warn, as omitting their contents doesn't change anything in the structure of the document (groff and mandoc specifically account for the whitespace between empty sections). This doesn't change any manuals, which only refer to the line arguments (or possibly next-line, in the case of man(7) syntax).
* empty .SS is okIngo Schwarze2011-04-121-1/+8
|
* Let mandoc-db also collect -man descriptions.Kristaps Dzonsons2011-04-121-6/+26
|
* Updating mandoc-db manual page with new recno contents.Kristaps Dzonsons2011-04-111-5/+14
|
* Update example.style.css to be a bit more readable by default.Kristaps Dzonsons2011-04-111-19/+13
|
* Have mandoc-db accumulate manual page descriptions (`Nd' in -mdoc parlance)Kristaps Dzonsons2011-04-111-30/+80
| | | | | in the index. This allows, with both the btree and index, full emulation of apropos(1) and other goodies.
* Ignore \# lines alongside \". From groff(7):Kristaps Dzonsons2011-04-111-2/+2
| | | | | | \# Everything up to and including the next newline is ignored. This is interpreted in copy mode. This is like \" except that the terminating newline is ignored as well.
* Use dbt_xxxx functions to stash both filename and manual section in theKristaps Dzonsons2011-04-111-17/+19
| | | | | | value part of the index. This is the actual manual section---before, mandoc.cgi was relying on the file suffix, but this can be (e.g.) .man or whatnot. This is The Correct Way (tm).
* Tidy up www page: remove all sorts of DIV crap, superfluous CSS, in-lineKristaps Dzonsons2011-04-092-412/+363
| | | | STYLE attributes, and so on. Now renders nicely in lynx.
* Skeleton of documentation functions, types, and variables in mandoc.h.Kristaps Dzonsons2011-04-091-2/+43
|
* Lint catching some potential issues.Kristaps Dzonsons2011-04-091-4/+4
|
* Remove a2roffdeco() and mandoc_special() functions and replace them withKristaps Dzonsons2011-04-0910-535/+480
| | | | | | | | | | | | | | | | | | a public (mandoc.h) function mandoc_escape(), which merges the functionality of both prior functions. Reason: code duplication. The a2roffdeco() and mandoc_special() functions were pretty much the same thing and both quite complex. This allows one function to receive improvements in (e.g.) subexpression handling and performance, instead of having to replicate functionality. As such, the mandoc_escape() function already handles a superset of the escapes handled in previous versions and has improvements in performance (using strcspn(), for example) and reliable handling of subexpressions. This code Works For Me, but may need work to catch any regressions. Since the benefits are great (leaner code, simpler API), I'd rather have it in-tree than floating as a patch.
* Don't shadow global identifiers.Joerg Sonnenberger2011-04-072-19/+19
|
* First, properly escape periods with \&. Then consistently refer toKristaps Dzonsons2011-04-061-63/+84
| | | | | | | | | | non-macro lines as "text lines" (after defining them as such). Clean up notion of font scope. Note comma usage in multiple `Nm's. Note ordering of SYNOPSIS section stuff. Add some bits about DESCRIPTION syntax (brief description, then args). Note that `Bl' can also contain HEAD. Finally, fix some `Cm' entries to be properly `Ar'. Ok Jason McIntyre.
* On .de macro lines, after the macro name, space and tab are equivalent.Ingo Schwarze2011-04-051-6/+4
| | | | | Bug reported by Tristan dot LeGuern at gmail dot com in fvwm2(1). tweaks and ok kristaps@; earlier version looked good to espie@ as well
* Lint-checks over mandoc-db.c.Kristaps Dzonsons2011-04-051-19/+15
|
* Use a little more horsepower in parsing out NAME sections from -manKristaps Dzonsons2011-04-051-17/+57
| | | | manuals. This covers the majority case.
* Fix type- and NULL-check to be correct node (last, not child). PreventsKristaps Dzonsons2011-04-051-2/+2
| | | | segfault in NetBSD.
* Add mandoc-db.c checking for utility-name in NAME section of -manKristaps Dzonsons2011-04-051-4/+78
| | | | documents.
* Make sure to create LIBDIR. From a patch by Thomas Klausner, thanks!Kristaps Dzonsons2011-04-051-0/+1
|
* Add config.h Glue for OpenIndiana (and older OpenSolaris) to build.Kristaps Dzonsons2011-04-044-4/+20
| | | | From a patch by Yuri Pankov, thanks!
* Suppress a space following the "(" for -T[x]html `Fn'. Found by randomKristaps Dzonsons2011-04-041-1/+2
| | | | perusal of online manuals.
* Snafu: forgetting to tar up critical files. Pointed out by Yuri Pankov.VERSION_1_11_1Kristaps Dzonsons2011-04-041-0/+4
|
* Remove an unused variable (caught in lint-check)Kristaps Dzonsons2011-04-041-4/+2
|
* Version up to 1.11.1: here we go!Kristaps Dzonsons2011-04-042-4/+4
|
* Have `Fd' detection in mandoc-db also look for local includes (i.e.,Kristaps Dzonsons2011-04-041-3/+3
| | | | those that are quoted and not angular-bracketed).
* Have `Fd' in -T[x]html generate an "include" link if it detects oneKristaps Dzonsons2011-04-041-5/+53
| | | | being used.
* Fix a bug that slip in: PAIR_XXXX macros expanded to run the incrementKristaps Dzonsons2011-04-041-2/+3
| | | | twice.
* Last low-hanging removal of superfluous variable assignments.Kristaps Dzonsons2011-04-041-7/+14
|
* Clean up superfluous variables in `Xr' handling in -Tascii.Kristaps Dzonsons2011-04-041-10/+10
|
* Fully fix the `Rv' and `Ex' handlers for -T[x]html and -Tascii. ThisKristaps Dzonsons2011-04-042-28/+36
| | | | includes an unreported bug where `Ex' wasn't properly adding a newline.
* Clean up -Tascii in the same way as -T[x]html regarding `Rv' arguments.Kristaps Dzonsons2011-04-041-11/+16
|
* Make `Rv' do the Right Thing regarding commas and "and" when listing itsKristaps Dzonsons2011-04-041-20/+27
| | | | | output. This also makes it easier to read. While here, remove superfluous assignment to local variables for this and `Mt'.
* Roll back Linux-ism that crept into Makefile.Kristaps Dzonsons2011-04-041-1/+1
|
* Fix possible segfaults in `Lk' -T[x]html handler, which made someKristaps Dzonsons2011-04-042-11/+13
| | | | | assumptions about its children. Also remove superfluous reassignment to local variable.
* Clean-up in -T[x]html: remove some unnecessary assignments to localKristaps Dzonsons2011-04-041-23/+21
| | | | variables.
* Clean up handling of `In' for -T[x]html such that it only links to theKristaps Dzonsons2011-04-041-12/+29
| | | | | first argument. groff of course doesn't do links, but it will uglify subsequent arguments in the list (we warn about >1, anyway).
* Add manual page for mandoc-db (mostly to document the file format ofKristaps Dzonsons2011-04-042-17/+150
| | | | | the generated index and keyword databases). Add some documentation within mandoc-db.c.
* Have mandoc-db create an recno-addressed index of files alongside theKristaps Dzonsons2011-04-031-60/+84
| | | | keyword database, which references the index of hard-coding files.