summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mdoc_man.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* In -man -Tascii, support .sp with negative argument.schwarze2012-07-131-70/+83
| | | | | In -mdoc -Tman, improve the framework to control vertical spacing. Use both to support .Bl -compact (surprisingly hard to get right).
* Do not crash in -Tman on:schwarze2012-07-121-9/+16
| | | | | | * .Fn with exactly one argument * .Bl -hang without a -width Now all 3776 base manuals build without crashing.
* Polish -Tman .Rs support.schwarze2012-07-111-28/+68
| | | | All mdoc(7) macros are now supported by -Tman.
* Basic implementation of -Tman .Bl -column using tbl(7).schwarze2012-07-111-6/+42
| | | | | | In the end, this turned out to be surprisingly simple; of course, getting identical output will be quite hard, so there is no way to quickly set up unit tests.
* basic implementation of -Tman .Bl -tagschwarze2012-07-101-6/+6
| | | | while here, do some minor outflags cleanup
* multiple fixes to -Tascii .HP rendering:schwarze2012-07-101-9/+23
| | | | | | | | | | | | | | | | * do not add an excessive blank line before the block * in literal mode, start a new line after the tag getting this to work requires some general (print_man_node) fixes: * in literal mode, break the output line at the end of each input line, not just after those input lines ending in text * but don't break it when there was no output on the line * and adjust the margins after the .HP tag these general fixes require an adjustment to -Tascii .TP rendering: * set up NOBREAK mode before the body, not after the head finally, based on all this, implement -Tman .Bl -hang in terms of .HP
* * implement -Tman .Bl -item -inset -diag -ohang -dash -hyphen -enum .Itschwarze2012-07-101-9/+122
| | | | | | | | | | * fix -Tman .Bl -bullet .It * adjust the -Tascii .Bl -bullet -dash -hyphen .It default and minimum width to new groff standards, it changed from 4n (in groff 1.15) to 2n (in groff 1.21) * same for -Tascii -enum, it changed from 5n to 2n * use -hang formatting for -Tascii -enum -width 2n * for -Tascii -enum, the default is -width 3n
* fix -Tascii .Fd line breakingschwarze2012-07-091-4/+23
| | | | and implement -Tman .Fd
* implement -Tman .Eo and .Ecschwarze2012-07-091-4/+13
|
* Implement -Tman .Bf.schwarze2012-07-091-6/+42
| | | | | | | To get the spacing right, * avoid man(7) code line breaks at places where no spacing is allowed * allow spacing right after .Sm on * allow spacing after empty .Fl at the end of an input line
* fix -Tman font handling for:schwarze2012-07-091-67/+147
| | | | | .Ad .Ar .Cd .Cm .Dv .Em .Er .Ev .Fa .Fl .Fn .Fo .Ft .Ic .In .Lk .Li .Ms .Mt .Nm .Pa .Sx .Sy .Tn .Va .Vt
* implement -Tman .No and .Mtschwarze2012-07-091-15/+27
|
* fix .Lk for -Tascii and implement it for -Tmanschwarze2012-07-081-2/+31
|
* fix vertical spacing for -Tman SYNOPSIS .Fn .Fo .Ft .In .Nm .Va .Vtschwarze2012-07-081-12/+65
|
* implement -Tman .Anschwarze2012-07-081-2/+30
| | | | also reset -[no]split mode at .Sh AUTHORS in -Tascii
* Add flags to insert a .sp or .br request before the next output,schwarze2012-07-081-50/+30
| | | | | shortening some frequent idioms and preparing for better vertical spacing in the SYNOPSIS; no functional change intended.
* Instead of adding one integer variable for each global boolean output flagschwarze2012-07-081-181/+177
| | | | | | and passing around a structure containing them into each and every function, just use a single static bitfield. In preparation for adding more output flags to support more features.
* implement -Tman .Vaschwarze2012-07-081-3/+3
| | | | and fix -Tman .Vt for the non-SYNOPSIS case
* ouch, in the SYNOPSIS, .Vt is a block,schwarze2012-07-081-1/+12
| | | | so avoid printing pointless goo in -Tman
* implement -Tman .Vtschwarze2012-07-081-2/+31
|
* Basic implementation of -Tman .Fo and .Fa;schwarze2012-07-081-17/+82
| | | | | | again, some blank lines still missing from the output. While here, remove the trailing semicolon from .Fn when outside .Sh SYNOPSIS.
* rudimentary support for -Tman .Ft and .Fn;schwarze2012-07-071-3/+49
| | | | some blank lines are still missing from the output
* basic support for -Tman .Inschwarze2012-07-071-2/+33
|
* after .Lb in library section, break the line in the final outputschwarze2012-07-071-2/+14
|
* implement -Tman .Bkschwarze2012-07-071-5/+36
|
* implement -Tman .Smschwarze2012-07-071-4/+20
|
* implement -Tman .Bd -offset and -compactschwarze2012-07-071-2/+36
|
* minor -mdoc -Tman fixesschwarze2012-07-071-3/+10
| | | | | | | * right after .Ns, avoid breaking the line in man code * after .Fl without arguments, do not insert a blank into man code * before each .Nm in .Sh SYNOPSIS, insert a .br into man code * skip .Pp arguments, don't copy them to man code
* Implement missing enclosures (Ao Do Qo Qq So Bro Brq)schwarze2011-10-221-24/+24
| | | | | and enclosure-like in-line macros (Ad Cd Dv Er Ev Li Ms Tn). The .No macro works without explicit implementation.
* Implement the missing text production macros (Bsx Bx Dx Fx Nx Ox Ux Bt Ud).schwarze2011-10-201-19/+54
| | | | Some macros work without explicit implementation (At Db Os St).
* Sync to version 1.12.0; all code by kristaps@:schwarze2011-10-091-109/+188
| | | | | | | | Implement .Rv in -Tman. Let -man -Tman work a bit like cat(1). Add the -Ofragment option to -T[x]html. Minor fixes in -T[x]html. Lots of apropos(1) and -Tman code cleanup.
* implement .Ap .Bd .Bo .Bq .D1 .Ic .Lp .Oo .Pf .Po .Ss .Sx .Sy .br .spschwarze2011-09-301-41/+134
| | | | | | | | implement .Bl -bullet add more information to the .TH line escape dots at the beginnings of lines add trailing newline character at the end of the file do not misinterpret the ROOT block as .Ap
* do not assign pointers to literal stringsschwarze2011-09-201-3/+3
| | | | | to variables that might be changed; from kristaps@
* Initial, incomplete support for -Tmanschwarze2011-09-171-0/+426
to convert mdoc(7) documents to the man(7) language. This is work in progress and will be developed in tree. It does already handle the cat(1) manual, but will hardly handle all your fancy manuals yet. go ahead kristaps@ jmc@ millert@ deraadt@