summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc
AgeCommit message (Collapse)Author
2010-01-03This is not intended to document just the mandoc(1) program, but ratherIngo Schwarze
man(7) and mdoc(7) special characters and predefined strings in general; just as mandoc(1) is not intending to implement new languages, but provide standard formatting for man(7) and mdoc(7) files, whatever "standard" may mean in this context (sigh). So move this to the right place. noticed by deraadt@
2010-01-03Install mandoc_char(7), a comprehensive overview of mandoc(1) specialIngo Schwarze
characters and predefined strings. In kristaps@'s words: "Note that mandoc_char(7) is a superset of the latest groff_char(7) (which defines most special characters), groff(7) (more special characters, mostly formatting), and mdoc_samples(7) (predefined strings and other nits). Thus, some of the characters that mandoc(1) accepts are not accepted by the groff in OpenBSD base." This is useful because you now have everything in one place, and in a form authoritative for mandoc(1). At least as long as we still have groff(1) in base, we must keep groff_char(7) as well, of course. "sure" jmc@
2010-01-02complete the sync to 1.9.15-pre2: mostly minor fixesIngo Schwarze
* bugfix: do not restore TERMP flags when leaving lists, just reset them * and a few HTML fixes * clarity: return width from a2width, not width+2, and adapt to it * manual: document .Bl and .Fl * portability: no need to escape '%' in macro names
2010-01-01When a .Fl macro without an argument is followed by text,Ingo Schwarze
we need a space in between; patch by kristaps@, rev. 1.103 and 1.104; fixes regress/usr.bin/mandoc/mdoc/Fl/noarg.in.
2010-01-01.Bl may have .Sm as a child.Ingo Schwarze
The comment in the source code and OK by kristaps@; merged upstream in rev. 1.55.
2010-01-01Fix .Bl -column horizontal spacing to agree with groff.Ingo Schwarze
My original patch nicely improved by and OK kristaps@; merged upstream as rev. 1.105, 1.106.
2010-01-01When multiple arguments are passed to .Fl,Ingo Schwarze
each should be rendered with its own dash. Fixes regress/usr.bin/mandoc/mdoc/Fl/multiarg.in; ok kristaps@ and merged upstream in rev. 1.39.
2009-12-24sync to 1.9.14: rewrite escape sequence handling:Ingo Schwarze
- new function a2roffdeco - font modes (\f) only affect the current stack point - implement scaling (\s) - implement space suppression (\c) - implement non-breaking space (\~) in -Tascii - many manual improvements
2009-12-23sync to 1.9.13: minor fixes:Ingo Schwarze
correctness/functionality: - bugfix: properly ignore lines with only a dot in -man - bugfix: .Bl -ohang doesn't allow -width, warn about this - improve date string handling by new function mandoc_a2time - some HTML improvements - significant documentation additions in man.7 and mdoc.7 portability: - replace __dead by __attribute__((noreturn)) - bugfix: correct .Dx rendering - some more library names for NetBSD simplicity: - replace hand-rolled putchar(3)-loops by fwrite(3) - replace single-character printf(3) by putchar(3)
2009-12-22sync to 1.9.12, mostly portability and refactoring:Ingo Schwarze
correctness/functionality: - bugfix: do not die when overstep hits the right margin - new option: -fign-escape - and various HTML features portability: - replace bzero(3) by memset(3), which is ANSI C - replace err(3)/warn(3) by perror(3)/exit(3), which is ANSI C - iuse argv[0] instead of __progname - add time.h to various files for FreeBSD compilation simplicity: - do not allocate header/footer data dynamically in *_term.c - provide and use malloc frontends that error out on failure for full changelogs, see http://bsd.lv/cgi-bin/cvsweb.cgi/
2009-10-27sync to 1.9.11: adapt printing of dates to groff conventions,Ingo Schwarze
NetBSD portability fixes and some minor bugfixes and feature enhancements; also checked that my hyphenation code still works on top of this
2009-10-24simplify overstep handling, removing one local variable;Ingo Schwarze
no functional change; ok kristaps@ and merged as rev. 1.110
2009-10-21sync to 1.9.9, featuring:Ingo Schwarze
* -Thtml output mode * roff scaling units * and some minor fixes for full changelogs, see http://bsd.lv/cgi-bin/cvsweb.cgi/
2009-10-20sync to 1.9.7: use .In instead of .Fd #includeIngo Schwarze
2009-10-19sync to 1.9.7: consolidate some -man -Tascii functions,Ingo Schwarze
and use a static buffer for the footer
2009-10-19sync to 1.9.7: kristaps@ renamed part of the DECL_ARGS :-(Ingo Schwarze
intricately mixed with three minor .Bd fixes
2009-10-19sync to 1.9.7: the same function was declared in two different headers;Ingo Schwarze
spotted by Ulrich Spoerlein, uqs at spoerlein dot net
2009-10-19sync to 1.9.7: avoid using the same identifier for a static functionIngo Schwarze
and for a local variable in another function in the same compilation unit; suggested by Ulrich Spoerlein, uqs at spoerlein dot net
2009-10-19sync to 1.9.7: compatibility fix; from joerg at netbsd dot orgIngo Schwarze
2009-10-19sync to 1.9.7: typo; from Alan Bueno, alan dot bsd at gmail dot comIngo Schwarze
2009-10-19sync to 1.9.6: minor fixes:Ingo Schwarze
* avoid blank character before the closing ">" of .In * .Bt can not have children
2009-10-19sync to 1.9.6: multiple improvements to references (.Rs)Ingo Schwarze
* validate and order .Rs child nodes * underline book title (.%B) and issuer (.%I) * enclose title of article (.%T) in quotes * avoid calling mdoc_verr directly, use a proper error code instead
2009-10-19sync to 1.9.6: do not die from .Bd -literal -offset w/o arg (and similar)Ingo Schwarze
Actually, our ancient groff behaves slightly differently than this fix, but not to die is already an improvement. Needs a closer look later.
2009-10-19sync to 1.9.6: two newline fixes:Ingo Schwarze
* newline before .Rs only below SEE ALSO * newline after .Lb only below LIBRARY
2009-10-19sync to 1.9.6: u_char lives in <sys/types.h>Ingo Schwarze
noticed by uqs at spoerlein dot net on FreeBSD, where <stdlib.h> does not include <sys/types.h>
2009-10-19sync to 1.9.6: here is the sync of special characters to new groffIngo Schwarze
as mentioned in the preceding manual commit (oops)
2009-10-19sync to 1.9.6: rework the documentation for special characters andIngo Schwarze
predefined strings, including the recent sync to new groff
2009-10-19sync to 1.9.6: fix segfault in .Bl -columnIngo Schwarze
2009-10-19sync to 1.9.5: partial rewrite of special character and predefined stringIngo Schwarze
tables and the supporting infrastructure, mostly in preparation for HTML output support
2009-10-18sync to 1.9.5: integrate closedelim() and opendelim() into term_word(),Ingo Schwarze
removing unnecessary extra functions
2009-09-21sync to 1.9.5: lookup hashes are now static tablesIngo Schwarze
shortening the code, and, according to kristaps@, speeding it up
2009-09-21sync to 1.9.5: make terminal_*, tree_* and out_* functions return void,Ingo Schwarze
making the code simpler
2009-09-21sync to 1.9.5: remove TERMP_STYLE bit field in favour of recursion-friendlyIngo Schwarze
integer flags, simplifying and shortening the code
2009-09-18now in sync with version 1.9.2Ingo Schwarze
2009-09-18sync to 1.9.2: Add .UC libman macro for compatibility, has no effect.Ingo Schwarze
Correct .UC and .DT to not print their arguments. Document that .UC and .DT should not be used.
2009-09-18fix typo (overriden -> overridden); from jmc@; included in 1.9.2Ingo Schwarze
2009-09-18sync to 1.9.2: non-printable characters in macro names are errors;Ingo Schwarze
from joerg at netbsd dot org
2009-08-23cvs add is your friend; cluestick applied by sobrado@, thanks!Ingo Schwarze
2009-08-22another large chunk of -man updates,Ingo Schwarze
among others regarding .DT, .HP, .RS, .RE, .SH, .SS, and scoping, now in sync vith release 1.9.1
2009-08-22sync to 1.9.1: .Rv and .Ex accept multiple argumentsIngo Schwarze
2009-08-22sync to 1.9.1: correctly flag delimiter whitespaceIngo Schwarze
2009-08-22sync to 1.9.1: sync mdoc manual structure to man manual structureIngo Schwarze
2009-08-22sync to 1.9.1: set mdoc_next flags in mdoc_*_alloc routines, where they belongIngo Schwarze
2009-08-22Oops, kill an "#ifdef __linux__" that crept in with the previous commit.Ingo Schwarze
2009-08-22Kristaps@ significantly overhauled libman.Ingo Schwarze
I'm committing this in one large chunk because in contrast to -mdoc, -man is mostly untested in OpenBSD anyway, so any fallout can be fixed in-tree. Among others, improved support for .IP, .HP, and .TP. Now in sync with release 1.9.0.
2009-08-22sync to 1.9.0: improve documentation of parsed and callable macros;Ingo Schwarze
the diff is large because kristaps@ reindented macro calls
2009-08-22sync to 1.9.0: polishing the core code of mdoc macro handlingIngo Schwarze
1) If a macro is not parsed, do not parse it. Of course, without parsing it, we cannot produce "macro-like parameter" warnings, but these were useless anyway. 2) If a macro is not callable, do not print a useless warning when it occurs as a parameter, just display the raw characters. 3) Below .Bl -column, check whether macros are callable. 4) Like groff, allow whitespace after the initial dot on macro lines.
2009-08-22sync to 1.9.0: like in groff, do not assert vspace between two .Sh macrosIngo Schwarze
in case the first one has no body
2009-08-22sync to 1.9.0: move indentation size into *term.c files,Ingo Schwarze
improving -man indentation
2009-08-22now in sync with 1.8.5 (except for %T underline)Ingo Schwarze