Age | Commit message (Collapse) | Author |
|
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@
|
|
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@
|
|
* 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
|
|
we need a space in between;
patch by kristaps@, rev. 1.103 and 1.104;
fixes regress/usr.bin/mandoc/mdoc/Fl/noarg.in.
|
|
The comment in the source code and OK by kristaps@;
merged upstream in rev. 1.55.
|
|
My original patch nicely improved by and OK kristaps@;
merged upstream as rev. 1.105, 1.106.
|
|
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.
|
|
- 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
|
|
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)
|
|
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/
|
|
NetBSD portability fixes and some minor bugfixes and feature enhancements;
also checked that my hyphenation code still works on top of this
|
|
no functional change;
ok kristaps@ and merged as rev. 1.110
|
|
* -Thtml output mode
* roff scaling units
* and some minor fixes
for full changelogs, see http://bsd.lv/cgi-bin/cvsweb.cgi/
|
|
|
|
and use a static buffer for the footer
|
|
intricately mixed with three minor .Bd fixes
|
|
spotted by Ulrich Spoerlein, uqs at spoerlein dot net
|
|
and for a local variable in another function in the same compilation unit;
suggested by Ulrich Spoerlein, uqs at spoerlein dot net
|
|
|
|
|
|
* avoid blank character before the closing ">" of .In
* .Bt can not have children
|
|
* 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
|
|
Actually, our ancient groff behaves slightly differently than this fix,
but not to die is already an improvement. Needs a closer look later.
|
|
* newline before .Rs only below SEE ALSO
* newline after .Lb only below LIBRARY
|
|
noticed by uqs at spoerlein dot net on FreeBSD,
where <stdlib.h> does not include <sys/types.h>
|
|
as mentioned in the preceding manual commit (oops)
|
|
predefined strings, including the recent sync to new groff
|
|
|
|
tables and the supporting infrastructure, mostly in preparation for
HTML output support
|
|
removing unnecessary extra functions
|
|
shortening the code, and, according to kristaps@, speeding it up
|
|
making the code simpler
|
|
integer flags, simplifying and shortening the code
|
|
|
|
Correct .UC and .DT to not print their arguments.
Document that .UC and .DT should not be used.
|
|
|
|
from joerg at netbsd dot org
|
|
|
|
among others regarding .DT, .HP, .RS, .RE, .SH, .SS, and scoping,
now in sync vith release 1.9.1
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
the diff is large because kristaps@ reindented macro calls
|
|
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.
|
|
in case the first one has no body
|
|
improving -man indentation
|
|
|