CVS log for mandoc/mandoc.1

[BACK] Up to [cvsweb.bsd.lv] / mandoc

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.245 / (download) - annotate - [select for diffs], Mon Jul 20 16:57:30 2020 UTC (2 weeks, 2 days ago) by schwarze
Branch: MAIN
CVS Tags: HEAD
Changes since 1.244: +5 -6 lines
Diff to previous 1.244 (colored)

Switch the default pager from "more -s" to "less".

POSIX explicitly allows using a different default pager if that is
documented.  Nowadays, the pager provided in most operating systems
is less(1).  Our man(1) implementation uses less(1) features that
traditional more(1) did not provide, in particular tagging.  Besides,
as noted by deraadt@, the user interface of less(1) is slightly
more refined and preferable over the user inferface of more(1).
This switch was originally suggested by Ian Ropers.

In ./configure, test whether less(1) is available.  If not, fall
back to more(1).  In ./configure.local, support overriding the
automatic test by setting BINM_PAGER.

As explained by jmc@ and deraadt@, the -s flag was added a very
long time ago when an antique version of groff(1) had an annoying
bug in terminal output that would randomly display blank lines in
the middle of pages.  Clearly, -s has no longer been needed for
many years, so drop it from the default pager invocation.

OK deraadt@ jmc@ martijn@ job@ on the OpenBSD version of this patch.

Revision 1.244 / (download) - annotate - [select for diffs], Mon Jun 15 18:05:18 2020 UTC (7 weeks, 2 days ago) by schwarze
Branch: MAIN
Changes since 1.243: +18 -1 lines
Diff to previous 1.243 (colored)

document -T html -O tag as implemented in main.c rev. 1.350

Revision 1.243 / (download) - annotate - [select for diffs], Fri Apr 24 12:02:33 2020 UTC (3 months, 1 week ago) by schwarze
Branch: MAIN
Changes since 1.242: +17 -3 lines
Diff to previous 1.242 (colored)

provide a STYLE message when mandoc knows the file name and the extension
disagrees with the section number given in the .Dt or .TH macro;
feature suggested and patch tested by jmc@

Revision 1.242 / (download) - annotate - [select for diffs], Sat Feb 15 15:28:13 2020 UTC (5 months, 2 weeks ago) by schwarze
Branch: MAIN
Changes since 1.241: +8 -3 lines
Diff to previous 1.241 (colored)

mention that -T man does not support eqn(7) and tbl(7);
triggered by a question from Stephen Gregoratto <dev at sgregoratto dot me>

Revision 1.241 / (download) - annotate - [select for diffs], Sun Jan 19 16:44:50 2020 UTC (6 months, 2 weeks ago) by schwarze
Branch: MAIN
Changes since 1.240: +3 -3 lines
Diff to previous 1.240 (colored)

Align to the new, sane behaviour of the groff_mdoc(7) .Dd macro:
without an argument, use the empty string, and always concatenate
all arguments, no matter their number.
This allows reducing the number of arguments of mandoc_normdate()
and some other simplifications, at the same time polishing some
error messages by adding the name of the macro in question.

Revision 1.240 / (download) - annotate - [select for diffs], Wed Jul 10 19:39:01 2019 UTC (12 months, 3 weeks ago) by schwarze
Branch: MAIN
Changes since 1.239: +49 -6 lines
Diff to previous 1.239 (colored)

Some time ago, i simplified mandoc_msg() such that it can be used
everywhere and not only in the parsers.
For more uniform messages, use it at more places instead of err(3),
in particular in the main program.
While here, integrate a few trivial functions called at exactly one
place into the main option parser, and let a few more functions use
the normal convention of returning 0 for success and -1 for error.

Revision 1.239 / (download) - annotate - [select for diffs], Sun May 26 01:28:09 2019 UTC (14 months, 1 week ago) by schwarze
Branch: MAIN
Changes since 1.238: +4 -3 lines
Diff to previous 1.238 (colored)

use proper crossreference; patch from naddy@

Revision 1.238 / (download) - annotate - [select for diffs], Tue Apr 30 11:48:10 2019 UTC (15 months, 1 week ago) by schwarze
Branch: MAIN
Changes since 1.237: +6 -3 lines
Diff to previous 1.237 (colored)

improve the description of the message "blank line in fill mode";
triggered by a misunderstanding by sashan@

Revision 1.237 / (download) - annotate - [select for diffs], Sat Feb 23 18:53:54 2019 UTC (17 months, 1 week ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_5
Changes since 1.236: +13 -2 lines
Diff to previous 1.236 (colored)

Explain the ASCII rendering of single quotes because that repeatedly
caused confusion in the past.  People plainly do not expect that
there are limits to the compatibility between Unicode and ASCII,
but there are.

The information belongs here and not into mandoc_char(7) because
it explains how the specific output device (-T ascii) works and
because it has nothing to do with the question of how characters
are represented on the input side.

Revision 1.236 / (download) - annotate - [select for diffs], Tue Jan 1 08:18:11 2019 UTC (19 months ago) by schwarze
Branch: MAIN
Changes since 1.235: +12 -4 lines
Diff to previous 1.235 (colored)

Support taking the -O tag value from apropos(1) key=value search terms;
feature improvement suggested by kn@.
While here, also make "-O value" work from standard input.
OK kn@

Revision 1.235 / (download) - annotate - [select for diffs], Fri Dec 28 00:15:11 2018 UTC (19 months, 1 week ago) by schwarze
Branch: MAIN
Changes since 1.234: +9 -2 lines
Diff to previous 1.234 (colored)

add some notes about using col(1) and ul(1) to process the ascii markup
since these may not be commonly known utilities;
idea from and joint work with tedu@
CV: ----------------------------------------------------------------------

Revision 1.234 / (download) - annotate - [select for diffs], Mon Dec 24 23:37:22 2018 UTC (19 months, 1 week ago) by schwarze
Branch: MAIN
Changes since 1.233: +9 -9 lines
Diff to previous 1.233 (colored)

mandoc.css lives in /usr/share/misc now; use full paths to indicate this.
from tedu@

Revision 1.233 / (download) - annotate - [select for diffs], Thu Dec 20 18:24:12 2018 UTC (19 months, 2 weeks ago) by schwarze
Branch: MAIN
Changes since 1.232: +21 -5 lines
Diff to previous 1.232 (colored)

Explain what the fields in mandoc messages mean,
rather than merely specifying the message syntax.
Gap in documentation found while looking at a bug
report from Raf Czlonka <rczlonka at gmail dot com>.

Revision 1.232 / (download) - annotate - [select for diffs], Sat Dec 15 19:30:26 2018 UTC (19 months, 3 weeks ago) by schwarze
Branch: MAIN
Changes since 1.231: +17 -3 lines
Diff to previous 1.231 (colored)

Several improvements to escape sequence handling.

* Add the missing special character \_ (underscore).
* Partial implementations of \a (leader character)
and \E (uninterpreted escape character).
* Parse and ignore \r (reverse line feed).
* Add a WARNING message about undefined escape sequences.
* Add an UNSUPP message about unsupported escape sequences.
* Mark \! and \? (transparent throughput)
and \O (suppress output) as unsupported.
* Treat the various variants of zero-width spaces as one-byte escape
sequences rather than as special characters, to avoid defining bogus
forms with square brackets.
* For special characters with one-byte names, do not define bogus
forms with square brackets, except for \[-], which is valid.
* In the form with square brackets, undefined special characters do not
fall back to printing the name verbatim, not even for one-byte names.
* Starting a special character name with a blank is an error.
* Undefined escape sequences never abort formatting of the input
string, not even in HTML output mode.
* Document the newly handled escapes, and a few that were missing.
* Regression tests for most of the above.

Revision 1.231 / (download) - annotate - [select for diffs], Thu Nov 22 11:30:23 2018 UTC (20 months, 2 weeks ago) by schwarze
Branch: MAIN
Changes since 1.230: +13 -1 lines
Diff to previous 1.230 (colored)

In -T locale (the default), -T ascii, and -T utf8 mode, provide a new
output option -O tag[=term] to move right to the definition of "term" when
opening the manual page in a pager, effectively porting the -T html
fragment name feature - https://man.openbsd.org/ksh#ulimit - to the
terminal.  Try:

$ man -O tag uvm_sysctl
$ man -O tag=ulimit ksh
$ man -O tag 3 compress

Feature development triggered by a question from kn@.  Klemens also
tested, provided feedback that resulted in improvements, and provided
an OK.

Revision 1.230 / (download) - annotate - [select for diffs], Tue Oct 2 14:56:47 2018 UTC (22 months ago) by schwarze
Branch: MAIN
Changes since 1.229: +5 -2 lines
Diff to previous 1.229 (colored)

Add an option -T html -O toc to add a brief table of contents near
the top of HTML pages containing at least two non-standard sections.
Suggested by Adam Kalisz and discussed with kristaps@ during EuroBSDCon 2018.

Revision 1.229 / (download) - annotate - [select for diffs], Tue Oct 2 12:33:37 2018 UTC (22 months ago) by schwarze
Branch: MAIN
Changes since 1.228: +7 -3 lines
Diff to previous 1.228 (colored)

Support a second argument to -O man,
selecting the format according to local existence of the file.
Suggested by kristaps@ during EuroBSDCon 2018.
Written on the train Frankfurt-Karlsruhe returning from EuroBSDCon.

Revision 1.228 / (download) - annotate - [select for diffs], Sat Aug 25 16:53:38 2018 UTC (23 months, 1 week ago) by schwarze
Branch: MAIN
Changes since 1.227: +15 -2 lines
Diff to previous 1.227 (colored)

Rudimentary implementation of the roff(7) .char (output glyph
definition) request, used for example by groff_hdtbl(7).

This simplistic implementation may interact incorrectly
with the .tr (input character translation) request.
But come on, you are not only using .char *and* .tr, but you do so
with respect to the same character in the same manual page?

Revision 1.227 / (download) - annotate - [select for diffs], Thu Aug 23 14:29:38 2018 UTC (23 months, 2 weeks ago) by schwarze
Branch: MAIN
Changes since 1.226: +24 -2 lines
Diff to previous 1.226 (colored)

Implement the roff(7) .shift and .return requests,
for example used by groff_hdtbl(7) and groff_mom(7).

Also correctly interpolate arguments during nested macro execution
even after .shift and .return, implemented using a stack of argument
arrays.

Note that only read.c, but not roff.c can detect the end of a macro
execution, and the existence of .shift implies that arguments cannot
be interpolated up front, so unfortunately, this includes a partial
revert of roff.c rev. 1.337, moving argument interpolation back into
the function roff_res().

Revision 1.226 / (download) - annotate - [select for diffs], Sat Jul 28 18:34:15 2018 UTC (2 years ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_4
Changes since 1.225: +12 -2 lines
Diff to previous 1.225 (colored)

Issue a STYLE message when normalizing the date format in .Dd/.TH.
Leah Neukirchen pointed out that mdoclint(1) used to warn about a
leading zero before the day number, so we know that both NetBSD and
Void Linux want the message.  It does no harm on OpenBSD because
Mdocdate always does the right thing anyway.
jmc@ agrees that it makes sense in contexts not using Mdocdate.

Revision 1.225 / (download) - annotate - [select for diffs], Thu May 3 14:21:46 2018 UTC (2 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.224: +3 -3 lines
Diff to previous 1.224 (colored)

Minor correction: we render HTML character references hexadecimal,
not decimal; bentley@ changed that in html.c on July 14, 2017.

Revision 1.224 / (download) - annotate - [select for diffs], Sun Apr 29 14:29:53 2018 UTC (2 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.223: +87 -101 lines
Diff to previous 1.223 (colored)

Simpler description of output formats, shortening the manual page by 15 lines.
Avoid the double redirection from -Tutf8 via -Tlocale to -Tascii.
Add LC_CTYPE to the ENVIRONMENT section.
While here, also correct a few inaccuracies and tweak some wordings.
Triggered by a question from Laura Morales <lauretas at mail dot com>.

Revision 1.223 / (download) - annotate - [select for diffs], Fri Apr 13 19:55:30 2018 UTC (2 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.222: +10 -6 lines
Diff to previous 1.222 (colored)

Use TIOCGWINSZ to reduce the default -Owidth during interactive use
on terminals narrower than 79 columns and the default -Oindent on
terminals narrower than 66 columns.
Requested by and feedback from pirofti@;
mpi@ and juanfra@ also like the general direction.

Revision 1.222 / (download) - annotate - [select for diffs], Fri Mar 16 15:05:44 2018 UTC (2 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.221: +9 -3 lines
Diff to previous 1.221 (colored)

Style message about bad input encoding of em-dashes as -- instead of \(em.
Suggested by Thomas Klausner <wiz at NetBSD>; discussed with jmc@.

Revision 1.221 / (download) - annotate - [select for diffs], Tue Nov 28 20:26:21 2017 UTC (2 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.220: +3 -3 lines
Diff to previous 1.220 (colored)

duplicate word, found by igor(1)

Revision 1.220 / (download) - annotate - [select for diffs], Fri Nov 10 23:32:40 2017 UTC (2 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.219: +3 -3 lines
Diff to previous 1.219 (colored)

be less assertive when warning about a possible typo;
from jca@, ok jmc@

Revision 1.219 / (download) - annotate - [select for diffs], Thu Sep 7 14:55:12 2017 UTC (2 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.218: +3 -3 lines
Diff to previous 1.218 (colored)

typo: convertion -> convention; from dcoppa@

Revision 1.218 / (download) - annotate - [select for diffs], Sat Aug 19 22:00:05 2017 UTC (2 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.217: +16 -2 lines
Diff to previous 1.217 (colored)

document -O mdoc; triggered by a question from jmc@ and OK jmc@

Revision 1.217 / (download) - annotate - [select for diffs], Thu Jul 20 15:26:41 2017 UTC (3 years ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_3, VERSION_1_14_2
Changes since 1.216: +5 -3 lines
Diff to previous 1.216 (colored)

For -Tlint, put parser messages on stdout instead of stderr.

Originally, naddy@ requested this in 2011 (or maybe even earlier).
It was discussed with joerg@, kristaps@, naddy@, and espie@ in 2011,
and everybody agreed in principle, but it was postponed because
kristaps@ wanted to do some cleanup of the message system first.
Meanwhile, message infrastructure was improved about a dozen times...

This makes long, tedious commands like "mandoc -Tlint *.1 2>&1 | less"
unnecessary and allows simple ones like "man -l -Tlint *.1".

Revision 1.216 / (download) - annotate - [select for diffs], Fri Jul 7 16:20:30 2017 UTC (3 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.215: +8 -27 lines
Diff to previous 1.215 (colored)

Radically simplify the definitions what the message levels ERROR
and WARNING mean: minus 20 lines of mdoc source.  OK jmc@.

Revision 1.215 / (download) - annotate - [select for diffs], Thu Jul 6 22:59:48 2017 UTC (3 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.214: +58 -58 lines
Diff to previous 1.214 (colored)

Now that we have the -Wstyle message level, downgrade six warnings
that are not syntax mistakes and that do not cause wrong formatting
or content to style suggestions.
Also upgrade two warnings that may cause information loss to errors.

Revision 1.214 / (download) - annotate - [select for diffs], Tue Jul 4 14:40:38 2017 UTC (3 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.213: +7 -1 lines
Diff to previous 1.213 (colored)

Printing "BASE:" in messages about violations of base system conventions
is confusing, simply print "STYLE:", which is intuitive and does not
sound excessively alarming; suggested by jmc@, OK tedu@ jmc@.

Revision 1.213 / (download) - annotate - [select for diffs], Mon Jul 3 17:33:05 2017 UTC (3 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.212: +10 -6 lines
Diff to previous 1.212 (colored)

report trailing delimiters after macros where they are usually a mistake;
the idea came up in a discussion with Thomas Klausner <wiz at NetBSD>

Revision 1.212 / (download) - annotate - [select for diffs], Mon Jul 3 13:40:18 2017 UTC (3 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.211: +10 -2 lines
Diff to previous 1.211 (colored)

warn about time machines; suggested by Thomas Klausner <wiz @ NetBSD>

Revision 1.211 / (download) - annotate - [select for diffs], Sun Jul 2 15:31:59 2017 UTC (3 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.210: +20 -2 lines
Diff to previous 1.210 (colored)

add warning "cross reference to self"; inspired by mdoclint

Revision 1.210 / (download) - annotate - [select for diffs], Sat Jul 1 09:47:30 2017 UTC (3 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.209: +10 -2 lines
Diff to previous 1.209 (colored)

Basic reporting of .Xrs to manual pages that don't exist
in the base system, inspired by mdoclint(1).

We are able to do this because (1) the -mdoc parser, the -Tlint validator,
and the man(1) manual page lookup code are all in the same program
and (2) the mandoc.db(5) database format allows fast lookup.

Feedback from, previous versions tested by, and OK jmc@.

A few features will be added to this in the tree, step by step.

Revision 1.209 / (download) - annotate - [select for diffs], Thu Jun 29 15:22:17 2017 UTC (3 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.208: +19 -2 lines
Diff to previous 1.208 (colored)

warn about some non-portable idioms in .Bl -column;
triggered by a question from Yuri Pankov (illumos)

Revision 1.208 / (download) - annotate - [select for diffs], Tue Jun 27 12:18:00 2017 UTC (3 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.207: +4 -2 lines
Diff to previous 1.207 (colored)

warn about .Ns macros that have no effect because they are followed
by an isolated closing delimiter; inspired by mdoclint

Revision 1.207 / (download) - annotate - [select for diffs], Sun Jun 25 17:43:45 2017 UTC (3 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.206: +7 -2 lines
Diff to previous 1.206 (colored)

Catch typos in .Sh names; suggested by jmc@.

I'm using a very simple, linear time / zero space fuzzy string
matching heuristic rather than a full Levenshtein metric, to keep
the code both simple and fast.

Revision 1.206 / (download) - annotate - [select for diffs], Sun Jun 25 11:42:02 2017 UTC (3 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.205: +7 -3 lines
Diff to previous 1.205 (colored)

add support for the MT and ME mailto macros, used for example in wg(8);
patch from bentley@

Revision 1.205 / (download) - annotate - [select for diffs], Sat Jun 24 21:08:44 2017 UTC (3 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.204: +2 -2 lines
Diff to previous 1.204 (colored)

delete useless .Ns macro that jmc@ found with mdoclint(1)

Revision 1.204 / (download) - annotate - [select for diffs], Sat Jun 24 19:06:51 2017 UTC (3 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.203: +7 -1 lines
Diff to previous 1.203 (colored)

document message "unknown architecture"

Revision 1.203 / (download) - annotate - [select for diffs], Sat Jun 24 15:59:50 2017 UTC (3 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.202: +8 -2 lines
Diff to previous 1.202 (colored)

in the base system, suggest leaving .Os blank; inspired by mdoclint

Revision 1.202 / (download) - annotate - [select for diffs], Sat Jun 24 14:38:32 2017 UTC (3 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.201: +70 -29 lines
Diff to previous 1.201 (colored)

Split -Wstyle into -Wstyle and the even lower -Wbase, and add
-Wopenbsd and -Wnetbsd to check conventions for the base system of
a specific operating system.  Mark operating system specific messages
with "(OpenBSD)" at the end.

Please use just "-Tlint" to check base system manuals (defaulting
to -Wall, which is now -Wbase), but prefer "-Tlint -Wstyle" for the
manuals of portable software projects you maintain that are not
part of OpenBSD base, to avoid bogus recommendations about base
system conventions that do not apply.

Issue originally reported by semarie@, solution using
an idea from tedu@, discussed with jmc@ and jca@.

Revision 1.201 / (download) - annotate - [select for diffs], Sat Jun 17 23:07:00 2017 UTC (3 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.200: +7 -2 lines
Diff to previous 1.200 (colored)

style message about duplicate RCS ids; inspired by mdoclint

Revision 1.200 / (download) - annotate - [select for diffs], Sat Jun 17 22:43:14 2017 UTC (3 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.199: +44 -2 lines
Diff to previous 1.199 (colored)

style message about missing RCS ids; inspired by mdoclint

Revision 1.199 / (download) - annotate - [select for diffs], Tue Jun 13 15:06:56 2017 UTC (3 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.198: +3 -4 lines
Diff to previous 1.198 (colored)

Delete the arbitrary range restriction for -Owidth.
We provide users with tools.  We don't attempt to prevent them from
using them in stupid ways: depending on the context, not every
stupid-looking use is necessarily actually stupid, and not every
stupidity can be automatically detected anyway, so don't even try.

Revision 1.198 / (download) - annotate - [select for diffs], Sun Jun 11 17:16:51 2017 UTC (3 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.197: +11 -2 lines
Diff to previous 1.197 (colored)

style message about missing .Fn markup; inspired by mdoclint

Revision 1.197 / (download) - annotate - [select for diffs], Sat Jun 10 01:48:53 2017 UTC (3 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.196: +7 -2 lines
Diff to previous 1.196 (colored)

style message about missing blank before trailing delimiter;
inspired by mdoclint(1), and jmc@ considers it useful

Revision 1.196 / (download) - annotate - [select for diffs], Thu Jun 8 00:23:30 2017 UTC (3 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.195: +8 -2 lines
Diff to previous 1.195 (colored)

warning about unknown .Lb arguments; inspired by mdoclint(1)

Revision 1.195 / (download) - annotate - [select for diffs], Wed Jun 7 23:29:48 2017 UTC (3 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.194: +32 -2 lines
Diff to previous 1.194 (colored)

style checks related to .Er; inspired by mdoclint(1)

Revision 1.194 / (download) - annotate - [select for diffs], Tue Jun 6 15:01:04 2017 UTC (3 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.193: +7 -2 lines
Diff to previous 1.193 (colored)

Minimal implementation of the roff(7) .ce request (center a number
of input lines without filling).
Contrary to groff, high-level macros abort .ce mode for now.

Revision 1.193 / (download) - annotate - [select for diffs], Sat Jun 3 12:17:25 2017 UTC (3 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.192: +4 -4 lines
Diff to previous 1.192 (colored)

enable -Wstyle by default in -Tlint; OK jmc@

Revision 1.192 / (download) - annotate - [select for diffs], Thu Jun 1 15:25:39 2017 UTC (3 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.191: +7 -2 lines
Diff to previous 1.191 (colored)

STYLE message about full stop at the end of .Nd; inspired by mdoclint(1)

Revision 1.191 / (download) - annotate - [select for diffs], Wed May 31 15:31:00 2017 UTC (3 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.190: +11 -1 lines
Diff to previous 1.190 (colored)

STYLE message about missing use of Ox/Nx/Fx/Dx; OK jmc@ wiz@

Revision 1.190 / (download) - annotate - [select for diffs], Tue May 30 20:25:32 2017 UTC (3 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.189: +4 -4 lines
Diff to previous 1.189 (colored)

tweak previous; from jmc@

Revision 1.189 / (download) - annotate - [select for diffs], Tue May 30 19:30:38 2017 UTC (3 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.188: +13 -1 lines
Diff to previous 1.188 (colored)

STYLE message about useless macros we don't want (Bt Tn Ud);
not a WARNING because they don't endanger portability

Revision 1.188 / (download) - annotate - [select for diffs], Wed May 17 23:39:31 2017 UTC (3 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.187: +1 -4 lines
Diff to previous 1.187 (colored)

Delete the -T xhtml command line option.
It has been obsolete for more than two years.
Use -T html.

Revision 1.187 / (download) - annotate - [select for diffs], Wed May 17 23:20:32 2017 UTC (3 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.186: +3 -4 lines
Diff to previous 1.186 (colored)

Modernize an example showing antiquated syntax,
and delete an example showing the arcane -W stop option.

Revision 1.186 / (download) - annotate - [select for diffs], Wed May 17 22:43:56 2017 UTC (3 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.185: +3 -3 lines
Diff to previous 1.185 (colored)

missing space between macro arg and punctuation; from jmc@

Revision 1.185 / (download) - annotate - [select for diffs], Tue May 16 19:06:30 2017 UTC (3 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.184: +31 -12 lines
Diff to previous 1.184 (colored)

Introduce a new mandoc(1) message level, -W style, below -W warning.
Switch -W all from meaning -W warning to meaning -W style.
The meaning of -T lint does *not* change, it still implies -W warning.
No messages on the new level yet, but they will come.

Usually, i do not lightly make the user interface larger.
But this has been planned for years, and EXIT STATUS 1
was reserved for it all the time.  The message system
is now stable enough to finally implement it.

jmc@ regarding the concept: "really good idea"

Revision 1.184 / (download) - annotate - [select for diffs], Mon Mar 27 18:51:36 2017 UTC (3 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.183: +4 -4 lines
Diff to previous 1.183 (colored)

simplify the SYNOPSIS as well, just like the option lists;
suggested by and OK jmc@

Revision 1.183 / (download) - annotate - [select for diffs], Mon Mar 27 15:17:11 2017 UTC (3 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.182: +6 -16 lines
Diff to previous 1.182 (colored)

For some options that are rarely needed in mandoc(1),
delete the descriptions and point to man(1) instead.
Inspired by apropos.1 rev. 1.43.

Revision 1.182 / (download) - annotate - [select for diffs], Mon Mar 27 14:40:39 2017 UTC (3 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.181: +5 -17 lines
Diff to previous 1.181 (colored)

Simplify: mention at one place that -fkl override each other,
rather than stating it separately for each option.
Suggested, OKed, and tweaked by jmc@.

Revision 1.181 / (download) - annotate - [select for diffs], Tue Mar 21 18:25:51 2017 UTC (3 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.180: +3 -3 lines
Diff to previous 1.180 (colored)

simplify .Nd; to display manuals, use man(1) instead;
OK jmc@

Revision 1.180 / (download) - annotate - [select for diffs], Mon Mar 20 14:32:24 2017 UTC (3 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.179: +31 -61 lines
Diff to previous 1.179 (colored)

Silently ignore invalid -m input formats rather than erroring out.
As observed by Jan Stary <hans at stare dot cz>, this is useful such
that after 'alias man="man -m $HOME/man"', 'man -l foo.1' still works.
Simplify and shorten the description of -m, and use .Ic for macros.

Revision 1.179 / (download) - annotate - [select for diffs], Sat Mar 18 19:51:19 2017 UTC (3 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.178: +18 -5 lines
Diff to previous 1.178 (colored)

Correct description of MANPATH, and a few more improvements
to the ENVIRONMENT section; OK jmc@

Revision 1.178 / (download) - annotate - [select for diffs], Wed Mar 8 19:40:59 2017 UTC (3 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.177: +12 -2 lines
Diff to previous 1.177 (colored)

Document that -T markdown produces ASCII output, and the implied
limitations.  Of course, we could write UTF-8 output instead,
but even the CommonMark specification doesn't require parsers
to support that, so portability would be doubtful.

While here, provide a link to the CommonMark specification.

Revision 1.177 / (download) - annotate - [select for diffs], Mon Mar 6 17:26:04 2017 UTC (3 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.176: +10 -2 lines
Diff to previous 1.176 (colored)

Using .Nd only makes sense in the NAME section.
Warn if that macro occurs elsewhere.
Triggered by a question from Dag-Erling Smoergrav <des @ FreeBSD>.

Revision 1.176 / (download) - annotate - [select for diffs], Sat Mar 4 17:17:34 2017 UTC (3 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.175: +21 -13 lines
Diff to previous 1.175 (colored)

Make the description of -K autodetection easer to understand.
Basic idea suggested by jmc@, OK jmc@.

Revision 1.175 / (download) - annotate - [select for diffs], Fri Mar 3 14:23:23 2017 UTC (3 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.174: +33 -3 lines
Diff to previous 1.174 (colored)

new -mdoc -Tmarkdown output mode; OK millert@ reyk@ tb@;
thanks to reyk@ and to Vsevolod at FreeBSD for suggesting it

Revision 1.174 / (download) - annotate - [select for diffs], Fri Feb 10 15:45:28 2017 UTC (3 years, 5 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_1, VERSION_1_13
Changes since 1.173: +15 -2 lines
Diff to previous 1.173 (colored)

In -Ttree output mode, show the BROKEN node flag and
provide a -Onoval output option to show the unvalidated tree.

Revision 1.173 / (download) - annotate - [select for diffs], Tue Jan 31 19:44:04 2017 UTC (3 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.172: +15 -2 lines
Diff to previous 1.172 (colored)

add missing HISTORY information

Revision 1.172 / (download) - annotate - [select for diffs], Sat Jan 28 23:30:08 2017 UTC (3 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.171: +6 -2 lines
Diff to previous 1.171 (colored)

Add a warning "new sentence, new line".
This does not attempt to pinpoint each and every offender, but
instead tries very hard to avoid false positives: Currently, there
are only two false positives in the whole OpenBSD base system.
Only do this in mdoc(7), not in man(7), because manuals written
in man(7) typically have much worse problems than this.
OK jmc@ on a previous version of the patch

Revision 1.171 / (download) - annotate - [select for diffs], Sat Jan 21 02:32:39 2017 UTC (3 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.170: +2 -11 lines
Diff to previous 1.170 (colored)

bug was fixed, delete the BUGS section

Revision 1.170 / (download) - annotate - [select for diffs], Thu Jan 12 17:29:33 2017 UTC (3 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.169: +11 -3 lines
Diff to previous 1.169 (colored)

show meta data for -Ttree output

Revision 1.169 / (download) - annotate - [select for diffs], Tue Jan 10 12:53:07 2017 UTC (3 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.168: +8 -2 lines
Diff to previous 1.168 (colored)

Introduce flags NODE_NOSRC and NODE_NOPRT for AST nodes.
Use them to mark generated nodes and nodes that shall not produce output.
Let -Ttree output mode display these new flags.
Use NODE_NOSRC for .Ar, .Mt, and .Pa default arguments.
Use NODE_NOPRT for .Dd, .Dt, and .Os.

These will help to make handling of text production macros more rigorous.

Revision 1.168 / (download) - annotate - [select for diffs], Sun Jan 8 00:11:23 2017 UTC (3 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.167: +14 -7 lines
Diff to previous 1.167 (colored)

Stricter validation of the NAME section, in particular:
- require a comma between names
- reject all other text nodes
- reject all empty Nm below NAME, not only in the leading position
- reject Nm after Nd

Revision 1.167 / (download) - annotate - [select for diffs], Fri Jan 6 01:34:57 2017 UTC (3 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.166: +5 -5 lines
Diff to previous 1.166 (colored)

sort options list; from jmc@

Revision 1.166 / (download) - annotate - [select for diffs], Wed Dec 28 21:51:15 2016 UTC (3 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.165: +3 -3 lines
Diff to previous 1.165 (colored)

correct spelling error; from jmc@

Revision 1.165 / (download) - annotate - [select for diffs], Wed Dec 28 17:34:18 2016 UTC (3 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.164: +9 -2 lines
Diff to previous 1.164 (colored)

Make the second, section number argument of .Xr mandatory.
In fact, we have been requiring it for many years.
The only reason to not warn when it was missing
was excessive traditionalism - it was optional in 4.4BSD.

Revision 1.164 / (download) - annotate - [select for diffs], Thu Nov 5 17:47:51 2015 UTC (4 years, 9 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_4
Changes since 1.163: +5 -5 lines
Diff to previous 1.163 (colored)

Unify the three stylesheets into a single CSS file.
Many thanks to bentley@ for doing this work.

Revision 1.163 / (download) - annotate - [select for diffs], Fri Oct 30 19:04:16 2015 UTC (4 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.162: +9 -2 lines
Diff to previous 1.162 (colored)

If a .Bd block has no arguments at all, drop the block and only keep
its contents.  Removing a gratuitious difference to groff output
found after a related bug report from krw@.

Revision 1.162 / (download) - annotate - [select for diffs], Tue Oct 6 15:33:29 2015 UTC (4 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.161: +5 -4 lines
Diff to previous 1.161 (colored)

improve wording and start a new sentence on a new line; from jmc@

Revision 1.161 / (download) - annotate - [select for diffs], Sat Sep 26 12:56:04 2015 UTC (4 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.160: +42 -2 lines
Diff to previous 1.160 (colored)

briefly document -T tree output

Revision 1.160 / (download) - annotate - [select for diffs], Mon Sep 14 15:36:14 2015 UTC (4 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.159: +2 -9 lines
Diff to previous 1.159 (colored)

Remove the warning about children of .Vt blocks because actually,
.Vt type global_variable No = Dv defined_constant ;
is the best way to specify in the SYNOPSIS how a global variable
is initialized in the rare case where that matters.
Issue noticed by jmc@.

Revision 1.159 / (download) - annotate - [select for diffs], Fri Apr 3 08:46:17 2015 UTC (5 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.158: +4 -3 lines
Diff to previous 1.158 (colored)

No need to hardcode /usr/bin/ as the path to more(1); helps portability.
We don't hardcode the paths to gunzip(1) and cmp(1) either.
Discussed with ajacoutot@.

Revision 1.158 / (download) - annotate - [select for diffs], Mon Mar 30 16:06:14 2015 UTC (5 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.157: +2 -2 lines
Diff to previous 1.157 (colored)

Escape punctuation characters that have a different meaning in -Tpdf.

~, `, and ' get translated to non-ASCII characters by most troff
implementations when generating PostScript/PDF output.  When the
original ASCII character is meant, it needs to be manually escaped.

Patch from bentley@.

Revision 1.157 / (download) - annotate - [select for diffs], Fri Mar 27 21:40:04 2015 UTC (5 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.156: +3 -3 lines
Diff to previous 1.156 (colored)

refering -> referring; patch from jmc@

Revision 1.156 / (download) - annotate - [select for diffs], Fri Mar 27 16:36:31 2015 UTC (5 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.155: +55 -58 lines
Diff to previous 1.155 (colored)

Modernize documentation by inserting blanks between option letters
and option arguments, except for -m because "-m an" and "-m andoc"
look just too weird.  Of course, the traditional form without the
blank will continue to work.

Revision 1.155 / (download) - annotate - [select for diffs], Mon Feb 23 13:31:03 2015 UTC (5 years, 5 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_3
Changes since 1.154: +19 -9 lines
Diff to previous 1.154 (colored)

improve NAME section diagnostics;
confusing messages reported by Jan Stary <hans at stare dot cz>

Revision 1.154 / (download) - annotate - [select for diffs], Mon Feb 16 19:02:48 2015 UTC (5 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.153: +5 -2 lines
Diff to previous 1.153 (colored)

clean up post_dt() validation function;
improved diagnostics, minus six lines of code

Revision 1.153 / (download) - annotate - [select for diffs], Mon Feb 16 16:23:54 2015 UTC (5 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.152: +3 -5 lines
Diff to previous 1.152 (colored)

Delete the -V option.  It serves no purpose but keeps confusing people.

Keeping track of the versions of installed software is the job of
the package manager, not of the individual binaries.  If individual
binaries include version numbers, that tends to goad people into
writing broken configuration tests that inspect version numbers
instead of properly testing for features.

Revision 1.152 / (download) - annotate - [select for diffs], Sat Feb 7 15:15:20 2015 UTC (5 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.151: +10 -13 lines
Diff to previous 1.151 (colored)

some tweaks to the DIAGNOSTICS section

Revision 1.151 / (download) - annotate - [select for diffs], Fri Feb 6 16:06:25 2015 UTC (5 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.150: +16 -7 lines
Diff to previous 1.150 (colored)

replace the last legacy generic message type, "argument count wrong",
by more specific messages, improving diagnostics for .cc .tr .Bl -column

Revision 1.150 / (download) - annotate - [select for diffs], Fri Feb 6 11:54:36 2015 UTC (5 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.149: +41 -18 lines
Diff to previous 1.149 (colored)

better error reporting regarding .OP .RS .UR .TH arguments

Revision 1.149 / (download) - annotate - [select for diffs], Fri Feb 6 09:38:43 2015 UTC (5 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.148: +5 -1 lines
Diff to previous 1.148 (colored)

better diagnostics about excess arguments to .PD .ft .sp

Revision 1.148 / (download) - annotate - [select for diffs], Fri Feb 6 08:28:35 2015 UTC (5 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.147: +5 -2 lines
Diff to previous 1.147 (colored)

better error reporting for .br .fi .nf with arguments

Revision 1.147 / (download) - annotate - [select for diffs], Fri Feb 6 07:13:14 2015 UTC (5 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.146: +15 -10 lines
Diff to previous 1.146 (colored)

Delete the legacy generic warning type MANDOCERR_ARGCWARN,
replacing the last instances by more specific warnings.
Improved functionality, minus 50 lines of code.

Revision 1.146 / (download) - annotate - [select for diffs], Fri Feb 6 03:38:45 2015 UTC (5 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.145: +9 -1 lines
Diff to previous 1.145 (colored)

better handle .Fo and .Fd without argument
better handle .Fo with more than one argument

Revision 1.145 / (download) - annotate - [select for diffs], Wed Feb 4 22:30:10 2015 UTC (5 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.144: +11 -8 lines
Diff to previous 1.144 (colored)

Discard excess head arguments for .Bd .Bl .Bk and delete hwarn_eq0().
Discard empty .Bk blocks.
Improve related diagnostics.

Revision 1.144 / (download) - annotate - [select for diffs], Wed Feb 4 19:20:12 2015 UTC (5 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.143: +14 -2 lines
Diff to previous 1.143 (colored)

improve diagnostics regarding arguments of .An .Pp .Lp .br .sp
in particular, get rid of check_count(..., CHECK_EQ, 0)

Revision 1.143 / (download) - annotate - [select for diffs], Wed Feb 4 18:03:47 2015 UTC (5 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.142: +11 -2 lines
Diff to previous 1.142 (colored)

discard .Rs head arguments and improve .Rs diagnostics

Revision 1.142 / (download) - annotate - [select for diffs], Wed Feb 4 16:38:56 2015 UTC (5 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.141: +8 -2 lines
Diff to previous 1.141 (colored)

more specific .Nd diagnostics, allowing to get rid of enum check_lvl
and the respective argument of check_count()

Revision 1.141 / (download) - annotate - [select for diffs], Thu Jan 29 00:33:57 2015 UTC (5 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.140: +9 -108 lines
Diff to previous 1.140 (colored)

Radical cleanup of COMPATIBILITY sections:
Remove lots of lies, dozens of irrelevant implementation details,
and all references to groff versions older than 1.17.  Move relevant
information to the pages where it belongs, and out of mandoc(1) in
particular.  Add some missing general remarks to roff(7), where it
fits the character and purpose of the page much better.

Revision 1.140 / (download) - annotate - [select for diffs], Wed Jan 28 21:11:53 2015 UTC (5 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.139: +2 -9 lines
Diff to previous 1.139 (colored)

Clean up eqn(7) error handling:
* When "define" fails, do not drop the whole equation.
* Free memory after "undef".
* Use standard mandoc error types instead of rolling our own.
* Delete obfuscating EQN_MSG() macro.
* Add function prototypes while here.

Revision 1.139 / (download) - annotate - [select for diffs], Wed Jan 28 17:32:07 2015 UTC (5 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.138: +38 -13 lines
Diff to previous 1.138 (colored)

* Polish tbl(7) error reporting.
* Do not print out macro names in tbl(7) data blocks.
* Like with GNU tbl, let empty tables cause a blank line.
* Avoid producing empty tables in -Tman.

Revision 1.138 / (download) - annotate - [select for diffs], Mon Jan 26 18:42:30 2015 UTC (5 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.137: +41 -3 lines
Diff to previous 1.137 (colored)

Rework tbl(7) layout parsing:
* Continue parsing even if part of the input is invalid.
* Do not require whitespace between cell specifications.
* Allow tabs as well as blanks between modifiers.
* Mark the 'm' modifier as unsupported.
* Parse and ignore the 'p' and 'v' modifiers.
* Better warning and error messages.
* Get rid of a static buffer.
Improved functionality but minus 50 lines of code.

Revision 1.137 / (download) - annotate - [select for diffs], Mon Jan 26 13:03:48 2015 UTC (5 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.136: +6 -2 lines
Diff to previous 1.136 (colored)

More improvements regarding tbl(7) options.
* Treat "allbox" as an alias for "box" for now.
* Parse and ignore the GNU tbl "nowarn" option.
* For separation, allow spaces, tabs, and commas only.
* Mark eqn(7) within tbl(7) as unsupported.
* Simplify the option table.
* Improve and sort documentation.

Revision 1.136 / (download) - annotate - [select for diffs], Mon Jan 26 00:57:22 2015 UTC (5 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.135: +39 -10 lines
Diff to previous 1.135 (colored)

Improve (or rather, rewrite) tbl(7) option parsing.
* Allow the layout to start after the semicolon on the options line.
* Ignore leading commas.
* Option arguments cannot contain closing parentheses.
* Avoid needless UNSUPP messages.
* Better ERROR reporting.
* Delete unused "linesize" field in struct tbl_opts.
* No need for static buffers.
* Garbage collect one almost empty wrapper function.
Improved functionality, but minus 40 lines of code.

Revision 1.135 / (download) - annotate - [select for diffs], Sat Jan 24 01:58:33 2015 UTC (5 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.134: +16 -3 lines
Diff to previous 1.134 (colored)

Support .RE with an argument; needed for audio/pms(1).

Revision 1.134 / (download) - annotate - [select for diffs], Tue Jan 20 22:45:07 2015 UTC (5 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.133: +3 -3 lines
Diff to previous 1.133 (colored)

typo fixes from jmc@

Revision 1.133 / (download) - annotate - [select for diffs], Tue Jan 20 21:16:51 2015 UTC (5 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.132: +62 -24 lines
Diff to previous 1.132 (colored)

Split the -Werror message level into -Werror (broken manual, probably
using mandoc is better than using groff) and -Wunsupp (manual using
unsupported low-level roff(7) feature, probably using groff is better
than using mandoc).  Once this feature is complete, it is intended
to help porting, making the decision whether to USE_GROFF easier.

As a first step, distinguish four classes of roff(7) requests:
1. Supported (currently 24 requests)
2. Currently ignored because unimportant (120)  ->  no message
3. Ignored for good because insecure (14)  ->  -Werror
4. Currently unsupported (68)  ->  these trigger the new -Wunsupp messages

Revision 1.132 / (download) - annotate - [select for diffs], Thu Jan 15 04:26:40 2015 UTC (5 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.131: +41 -53 lines
Diff to previous 1.131 (colored)

Fatal errors no longer exist.
If a file can be opened, mandoc will produce some output;
at worst, the output may be almost empty.
Simplifies error handling and frees a message type for future use.

Revision 1.131 / (download) - annotate - [select for diffs], Wed Jan 14 22:02:49 2015 UTC (5 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.130: +13 -9 lines
Diff to previous 1.130 (colored)

To get rid of SYSERR entries in enum mandocerr, downgrade problems with
missing and unreadable files from SYSERR to ERROR.
Needed for upcoming work.
As a bonus, this minimally simplifies code and documentation.

Revision 1.130 / (download) - annotate - [select for diffs], Sun Dec 28 14:42:27 2014 UTC (5 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.129: +5 -2 lines
Diff to previous 1.129 (colored)

mdoc(7) already uses the mandoc(1) -Ios argument in the footer line
when .Os has no argument, so do the same for man(7) when .TH has less
than four arguments; there is no reason to treat both differently.
Issue found following a question from Thomas Klausner <wiz at NetBSD>.

Revision 1.129 / (download) - annotate - [select for diffs], Tue Dec 16 23:44:41 2014 UTC (5 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.128: +3 -2 lines
Diff to previous 1.128 (colored)

Ignore mdoc(7) and man(7) macros inside tbl(7) code because they
would abort the table in an unclean way, causing assertion failures
found by jsg@.

Revision 1.128 / (download) - annotate - [select for diffs], Tue Dec 2 11:31:51 2014 UTC (5 years, 8 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_2
Changes since 1.127: +8 -6 lines
Diff to previous 1.127 (colored)

Switch the default output mode from -Tascii to -Tlocale.
This doesn't change anything unless LC_CTYPE is set,
but it helps when running with LC_TYPE=something.UTF-8.

OK tedu@  and earlier positive feedback from:
bentley@ deraadt@ naddy@ stsp@  uqs@freebsd wiz@netbsd

Revision 1.127 / (download) - annotate - [select for diffs], Sun Nov 30 05:29:00 2014 UTC (5 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.126: +10 -2 lines
Diff to previous 1.126 (colored)

Multiple fixes with respect to .Pf:
* The first argument of .Pf is not parsed.
* Normal delimiter handling does not apply to the first argument of .Pf.
* Warn if nothing follows a prefix (inspired by groff_mdoc(7)).
* In that case, do not suppress spacing.

Revision 1.126 / (download) - annotate - [select for diffs], Sun Nov 30 02:36:38 2014 UTC (5 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.125: +9 -2 lines
Diff to previous 1.125 (colored)

warn about attempts to call non-callable macros;
inspired by a similar warning in the groff_mdoc(7) macros

Revision 1.125 / (download) - annotate - [select for diffs], Fri Nov 28 18:09:01 2014 UTC (5 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.124: +2 -8 lines
Diff to previous 1.124 (colored)

Drop useless architecture table.  Validating architecture names
is a job for makewhatis(8)/mandoc.db(5), not for the parser.
Removes 150 lines from source files and 4k (1%) from the binary.
Bloat found by deraadt@.

Revision 1.124 / (download) - annotate - [select for diffs], Thu Nov 27 23:40:19 2014 UTC (5 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.123: +13 -13 lines
Diff to previous 1.123 (colored)

Downgrade .Bd -file from FATAL to ERROR.
Since this was the last remaining FATAL error in this area,
this change will allow major simplifications in the mdoc(7) parser.

Revision 1.123 / (download) - annotate - [select for diffs], Tue Nov 25 20:18:15 2014 UTC (5 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.122: +4 -12 lines
Diff to previous 1.122 (colored)

"Aq foo" is not the same as "<foo>". Don't use it to mark up HTML;
from bentley@.

Revision 1.122 / (download) - annotate - [select for diffs], Tue Nov 11 02:43:41 2014 UTC (5 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.121: +3 -3 lines
Diff to previous 1.121 (colored)

Let -h imply -c (that is, not use the pager).
Usually, -h output is short, so the pager is just a nuisance.
Also, traditional man(1) does not use a pager for -h.
Triggered by a remark of deraadt@ on ICB.

Revision 1.121 / (download) - annotate - [select for diffs], Thu Oct 30 17:14:59 2014 UTC (5 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.120: +2 -2 lines
Diff to previous 1.120 (colored)

fix a macro error in previous; from jmc@

Revision 1.120 / (download) - annotate - [select for diffs], Sat Oct 25 14:35:37 2014 UTC (5 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.119: +4 -2 lines
Diff to previous 1.119 (colored)

Report arguments to .EQ as an error, and simplify the code:
* drop trivial wrapper function roff_openeqn()
* drop unused first arg of function eqn_alloc()
* drop usused member "name" of struct eqn_node
While here, sync to OpenBSD by killing some trailing blanks.

Revision 1.119 / (download) - annotate - [select for diffs], Sat Oct 25 01:03:52 2014 UTC (5 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.118: +28 -2 lines
Diff to previous 1.118 (colored)

integrate preconv(1) into mandoc(1);
enhances functionality and reduces code and docs by more than 300 lines

Revision 1.118 / (download) - annotate - [select for diffs], Sun Oct 12 19:31:41 2014 UTC (5 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.117: +28 -11 lines
Diff to previous 1.117 (colored)

Improve error handling in the eqn(7) parser.
Get rid of the first fatal error, MANDOCERR_EQNSYNT.
In eqn(7), there is no need to be bug-compatible with groff, so there
is no need to abondon the whole equation in case of a syntax error.

In particular:
* Skip "back", "delim", "down", "fwd", "gfont", "gsize", "left",
  "right", "size", and "up" without arguments.
* Skip "gsize" and "size" with a non-numeric argument.
* Skip closing delimiters that are not open.
* Skip "above" outside piles.
* For diacritic marks and binary operators without a left operand,
  default to an empty box.
* Let piles and matrices take one argument rather than insisting
  on a braced list.  Let HTML output handle that, too.
* When rewinding, if the root box is guaranteed to match
  the termination condition, no error handling is needed.

Revision 1.117 / (download) - annotate - [select for diffs], Sat Oct 11 21:14:16 2014 UTC (5 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.116: +10 -2 lines
Diff to previous 1.116 (colored)

warn about parentheses in function names after .Fn and .Fo;
particularly useful when converting from other languages to mdoc(7);
feature suggested by bentley@

Revision 1.116 / (download) - annotate - [select for diffs], Fri Oct 10 08:44:24 2014 UTC (5 years, 9 months ago) by kristaps
Branch: MAIN
Changes since 1.115: +7 -3 lines
Diff to previous 1.115 (colored)

Re-write of eqn(7) parser and MathML output.
This adds parser-level support for the grammar described by the eqn
second-edition technical paper, "Typesetting Mathematics — User's Guide"
(Kernighan, Cherry).
The reason for this re-write is the grouping rules, which were not
possible given the existing implementation.
The re-write has also considerably simplified the HTML (and, if it ever
is completed, terminal) front-end.

Revision 1.115 / (download) - annotate - [select for diffs], Tue Oct 7 14:07:03 2014 UTC (5 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.114: +9 -4 lines
Diff to previous 1.114 (colored)

If a tbl(7) layout contains unknown font modifiers, fall back to the
default font rather than failing the whole table.
Needed by some pages in books/man-pages-posix.
Written on the plane back from EuroBSDCon in Sofia.

Revision 1.114 / (download) - annotate - [select for diffs], Sat Sep 27 11:17:19 2014 UTC (5 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.113: +8 -17 lines
Diff to previous 1.113 (colored)

Don't pretend we have a separate XHTML and HTML mode any more.

Revision 1.113 / (download) - annotate - [select for diffs], Fri Sep 12 00:54:10 2014 UTC (5 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.112: +9 -2 lines
Diff to previous 1.112 (colored)

warn about commas in function arguments; inspired by mdoclint(1)

Revision 1.112 / (download) - annotate - [select for diffs], Fri Sep 12 00:10:26 2014 UTC (5 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.111: +18 -2 lines
Diff to previous 1.111 (colored)

document new SEE ALSO .Xr warnings

Revision 1.111 / (download) - annotate - [select for diffs], Sun Sep 7 23:25:01 2014 UTC (5 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.110: +8 -2 lines
Diff to previous 1.110 (colored)

warn about AUTHORS sections without .An macros, inspired by mdoclint(1)

Revision 1.110 / (download) - annotate - [select for diffs], Wed Sep 3 05:22:45 2014 UTC (5 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.109: +7 -3 lines
Diff to previous 1.109 (colored)

Implement the traditional -h option for man(1): show the SYNOPSIS only.
As usual, we get mandoc -h and apropos -h for free.
Try stuff like "apropos -h In=dirent" or "apropos -h Fa=timespec".

Only useful for terminal output, so -Tps, -Tpdf, -Thtml ignore -h for now.

Revision 1.109 / (download) - annotate - [select for diffs], Sat Aug 30 18:08:10 2014 UTC (5 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.108: +39 -3 lines
Diff to previous 1.108 (colored)

Introduce a man(1) -l option as an alias for mandoc -a.
Basically, this does the same as man -l in Linux man-db.
The point is that now all functionality of the combined tool
is reachable from the man(1) command name:
apropos = man -k, whatis = man -f, mandoc = man -cl.

Originally suggested by Carsten dot Kunze at arcor dot de,
current maintainer of the Heirloom Documentation Tools.

While here, add various missing information to the usage()
and to the manuals.

Revision 1.108 / (download) - annotate - [select for diffs], Fri Aug 22 04:52:55 2014 UTC (5 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.107: +17 -2 lines
Diff to previous 1.107 (colored)

implement MANPAGER and PAGER

Revision 1.107 / (download) - annotate - [select for diffs], Fri Aug 22 03:42:18 2014 UTC (5 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.106: +18 -3 lines
Diff to previous 1.106 (colored)

mandoc -a, man, apropos -a, whatis -a now paginate by default
but provide an option -c to not paginate;
taking inspiration from manpage.c, hence adding (c) 2012 kristaps@

Revision 1.106 / (download) - annotate - [select for diffs], Fri Aug 8 01:50:59 2014 UTC (6 years ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_1, VERSION_1_12_4, VERSION_1_12
Changes since 1.105: +843 -28 lines
Diff to previous 1.105 (colored)

document warning and error messages, using quite some feedback from jmc@;
more cleanup is likely to happen when it's in

Revision 1.105 / (download) - annotate - [select for diffs], Mon Jun 23 22:03:30 2014 UTC (6 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.104: +7 -5 lines
Diff to previous 1.104 (colored)

Below DIAGNOSTICS, document the SYSERR message level;
jmc@ wondered what it meant and agrees with this patch.

Revision 1.104 / (download) - annotate - [select for diffs], Fri Jun 20 23:02:31 2014 UTC (6 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.103: +10 -6 lines
Diff to previous 1.103 (colored)

As suggested by jmc@, only include line and column numbers into messages
when they are meaningful, to avoid confusing stuff like this:
$ mandoc /dev/null
mandoc: /dev/null:0:1: FATAL: not a manual
Instead, just say:
mandoc: /dev/null: FATAL: not a manual

Another example this applies to is documents having a prologue,
but lacking a body.  Do not throw a FATAL error for these; instead,
issue a WARNING and show the empty document, in the man(7) case with
the same amount of blank lines as groff does.  Also downgrade mdoc(7)
documents having content before the first .Sh from FATAL to WARNING.

Revision 1.103 / (download) - annotate - [select for diffs], Sat Jul 13 19:41:16 2013 UTC (7 years ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_12_3, VERSION_1_12_2
Changes since 1.102: +3 -4 lines
Diff to previous 1.102 (colored)

For citing the names and email addresses of authors,
consistently use the style ".An name Aq Mt email".

Triggered by a question from Jan Stary <hans at stare dot cz>,
ok jmc@.

Revision 1.102 / (download) - annotate - [select for diffs], Wed Mar 6 08:08:24 2013 UTC (7 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.101: +3 -3 lines
Diff to previous 1.101 (colored)

legancy -> legacy; reported by Chris Hettrick

Revision 1.101 / (download) - annotate - [select for diffs], Sun May 27 17:48:57 2012 UTC (8 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.100: +15 -2 lines
Diff to previous 1.100 (colored)

Support -Ios='OpenBSD 5.1' to override uname(3) as the source of the
default value for the mdoc(7) .Os macro.
Needed for man.cgi on the OpenBSD website.

Problem with man.cgi first noticed by deraadt@;
beck@ and deraadt@ agree with the way to solve the issue.

"Please check them in and I'll look into them later!" kristaps@

Revision 1.100 / (download) - annotate - [select for diffs], Sun Dec 25 19:35:44 2011 UTC (8 years, 7 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_12_1
Changes since 1.99: +14 -13 lines
Diff to previous 1.99 (colored)

State default usage before listing arguments of a utility.  Inspired by a
patch to mandocdb.8 by schwarze@ some time ago.  Ok jmc@.

Revision 1.99 / (download) - annotate - [select for diffs], Sun Nov 13 14:50:54 2011 UTC (8 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.98: +3 -3 lines
Diff to previous 1.98 (colored)

typo: overful -> overfull; thanks to jmc@

Revision 1.98 / (download) - annotate - [select for diffs], Sun Nov 13 13:15:14 2011 UTC (8 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.97: +11 -2 lines
Diff to previous 1.97 (colored)

Make the default left text margin configurable from the command line,
just like the default right margin already is.  This may be useful for
people with expensive screen real estate.  Besides, it helps automated
man(7) to mdoc(7) output comparisons to validate -Tman output.
ok kristaps@ on an earlier version

Revision 1.97 / (download) - annotate - [select for diffs], Sun Oct 9 21:37:06 2011 UTC (8 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.96: +21 -8 lines
Diff to previous 1.96 (colored)

A bit more precision and nicer wording in the descriptions
of -Ofragment and -Tman; using input from jmc@ and kristaps@.

Revision 1.96 / (download) - annotate - [select for diffs], Thu Oct 6 23:05:55 2011 UTC (8 years, 10 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_12_0
Changes since 1.95: +3 -3 lines
Diff to previous 1.95 (colored)

Nix end-of-line whitespace.

Revision 1.95 / (download) - annotate - [select for diffs], Thu Oct 6 22:29:12 2011 UTC (8 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.94: +26 -6 lines
Diff to previous 1.94 (colored)

If -Tman is specified and input is -man, echo the preprocessed (`so'
replaced by file) input.  This replaces earlier behaviour of doing
nothing, which I found unexpected (mandoc should always output).

This requires a buffer in read.c that saves the input lines before being
parsed, with a special hook if `so' is invoked.  This buffer is just
flushed to output if -mman is the input.

While mucking around doing this, I also alpha-ordered the mandoc.h
functions.

Ok schwarze@, with no screaming when the polished patch was published.

Revision 1.94 / (download) - annotate - [select for diffs], Wed Oct 5 21:35:17 2011 UTC (8 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.93: +8 -2 lines
Diff to previous 1.93 (colored)

Add the -Ofragment option to -T[]x]html.  This accomodates for embedding
manual output in existing HTML or XHTML documents, e.g., when invoking
mandoc from an SSI or CGI.

Revision 1.93 / (download) - annotate - [select for diffs], Mon Sep 26 20:47:23 2011 UTC (8 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.92: +35 -35 lines
Diff to previous 1.92 (colored)

restore alphabetical order for the -Toutput list, and use a width
specifier that makes it look nicer;
from jmc@, ok kristaps@

Revision 1.92 / (download) - annotate - [select for diffs], Sun Sep 18 14:14:15 2011 UTC (8 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.91: +3 -3 lines
Diff to previous 1.91 (colored)

forgotten Copyright bumps; no code change
found while syncing to OpenBSD

Revision 1.91 / (download) - annotate - [select for diffs], Sat Sep 17 15:00:51 2011 UTC (8 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.90: +18 -2 lines
Diff to previous 1.90 (colored)

Initial, incomplete support for -Tman
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@

Revision 1.90 / (download) - annotate - [select for diffs], Thu Aug 18 08:58:43 2011 UTC (8 years, 11 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_11_7
Changes since 1.89: +4 -3 lines
Diff to previous 1.89 (colored)

Replace the old `An'/`Aq' AUTHORS note with `An'/`Mt'.

Revision 1.89 / (download) - annotate - [select for diffs], Mon May 30 07:24:15 2011 UTC (9 years, 2 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_11_6, VERSION_1_11_5, VERSION_1_11_4
Changes since 1.88: +9 -10 lines
Diff to previous 1.88 (colored)

Fix some bad bits in the mandoc manual: `Xr' instead of `Sx', unescaped
stuff that should be escaped, and a style matter or two.  Pointed out by
Jason McIntyre, thanks!

Revision 1.88 / (download) - annotate - [select for diffs], Fri May 20 15:51:18 2011 UTC (9 years, 2 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_11_3
Changes since 1.87: +14 -4 lines
Diff to previous 1.87 (colored)

Turn on -Tutf8 in the frontend.  Here we go!

Revision 1.87 / (download) - annotate - [select for diffs], Tue May 17 22:32:45 2011 UTC (9 years, 2 months ago) by kristaps
Branch: MAIN
Changes since 1.86: +22 -3 lines
Diff to previous 1.86 (colored)

Locale support.  I'm checking this in to clean up fall-out in-tree, but
it looks pretty good.  Basically, the -Tlocale option propogates into
term_ascii.c, where we set locale-specific console call-backs IFF (1)
setlocale() works; (2) locale support is compiled in (see Makefile for
-DUSE_WCHAR); (3) the internal structure of wchar_t maps directly to
Unicode codepoints as defined by __STDC_ISO_10646__; and (4) the console
supports multi-byte characters.

To date, this configuration only supports GNU/Linux.  OpenBSD doesn't
export __STDC_ISO_10646__ although I'm told by stsp@openbsd.org that it
should (it has the correct map).  Apparently FreeBSD is the same way.
NetBSD?  Don't know.  Apple also supports this, but doesn't define the
macro.  Special-casing!

Benchmark: -Tlocale incurs less than 0.2 factor overhead when run
through several thousand manuals when UTF8 output is enabled.  Native
mode (whether directly -Tascii or through no locale or whatever) is
UNCHANGED: the function callbacks are the same as before.

Note.  If the underlying system does NOT support STDC_ISO_10646, there
is a "slow" version possible with iconv or other means of flipping from
a Unicode codepoint to a wchar_t.

Revision 1.86 / (download) - annotate - [select for diffs], Tue May 17 12:22:15 2011 UTC (9 years, 2 months ago) by kristaps
Branch: MAIN
Changes since 1.85: +10 -5 lines
Diff to previous 1.85 (colored)

Documentation: note COMPATIBILITY of -Tascii `?' printing in mandoc.1
and remove some long-fixed notes in sthe same section.  Also, add an
`Lb' for the mandoc library to mandoc.3 (noted by Sascha Wildner).

Revision 1.85 / (download) - annotate - [select for diffs], Wed Feb 9 10:03:02 2011 UTC (9 years, 5 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_11_2, VERSION_1_11_1, VERSION_1_10_10
Changes since 1.84: +3 -2 lines
Diff to previous 1.84 (colored)

Add stub for eqn.7 manual and flip it on.  Also note COMPATIBILITY issue
of how we considered .TS (etc.) macros and how the preprocessors do.

Revision 1.84 / (download) - annotate - [select for diffs], Tue Jan 4 23:32:21 2011 UTC (9 years, 7 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_9
Changes since 1.83: +5 -3 lines
Diff to previous 1.83 (colored)

Moved table stuff from roff.7 into the new tbl.7 (suggested by Jason McIntyre).

Added cross-links to tbl.7 from other manuals.

Revision 1.83 / (download) - annotate - [select for diffs], Mon Dec 20 13:57:49 2010 UTC (9 years, 7 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_8
Changes since 1.82: +8 -10 lines
Diff to previous 1.82 (colored)

Clarify style inclusions and update release information.

Revision 1.82 / (download) - annotate - [select for diffs], Fri Dec 17 11:18:57 2010 UTC (9 years, 7 months ago) by kristaps
Branch: MAIN
Changes since 1.81: +5 -5 lines
Diff to previous 1.81 (colored)

Correctly mark the examples as `Dl', not `D1'.

Revision 1.81 / (download) - annotate - [select for diffs], Thu Dec 16 23:07:01 2010 UTC (9 years, 7 months ago) by kristaps
Branch: MAIN
Changes since 1.80: +7 -8 lines
Diff to previous 1.80 (colored)

Note that we use CSS1, not CSS2.

Remove superfluous language in output-mode short description.

Revision 1.80 / (download) - annotate - [select for diffs], Thu Dec 16 11:23:08 2010 UTC (9 years, 7 months ago) by kristaps
Branch: MAIN
Changes since 1.79: +2 -8 lines
Diff to previous 1.79 (colored)

Remove stray note on `i', which we no longer support.

Revision 1.79 / (download) - annotate - [select for diffs], Wed Dec 15 15:59:23 2010 UTC (9 years, 7 months ago) by kristaps
Branch: MAIN
Changes since 1.78: +2 -11 lines
Diff to previous 1.78 (colored)

Remove stupid outer DIV tag in favour of regular BODY and HTML that can
be handled in CSS.

Clarified "lit" tag (will be the subject of future clarification).

Removed CSS2 note in mandoc.1, which is no longer the case.

Revision 1.78 / (download) - annotate - [select for diffs], Sun Sep 26 23:05:46 2010 UTC (9 years, 10 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_10_7, VERSION_1_10_6
Changes since 1.77: +4 -4 lines
Diff to previous 1.77 (colored)

sync to OpenBSD:
new sentence, new line;
from jmc@

Revision 1.77 / (download) - annotate - [select for diffs], Fri Aug 20 01:02:07 2010 UTC (9 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.76: +143 -59 lines
Diff to previous 1.76 (colored)

Implement a simple, consistent user interface for error handling.
We now have sufficient practical experience to know what we want,
so this is intended to be final:
- provide -Wlevel (warning, error or fatal) to select what you care about
- provide -Wstop to stop after parsing a file with warnings you care about
- provide consistent exit status codes for those warnings you care about
- fully document what warnings, errors and fatal errors mean
- remove all other cruft from the user interface, less is more:
- remove all -f knobs along with the whole -f option
- remove the old -Werror because calling warnings "fatal" is silly
- always finish parsing each file, unless fatal errors prevent that
This commit also includes a couple of related simplifications behind
the scenes regarding error handling.
Feedback and OK  kristaps@;  Joerg Sonnenberger (NetBSD) and
Sascha Wildner (DragonFly BSD) agree with the general direction.

Revision 1.76 / (download) - annotate - [select for diffs], Wed Aug 18 08:41:40 2010 UTC (9 years, 11 months ago) by kristaps
Branch: MAIN
Changes since 1.75: +4 -7 lines
Diff to previous 1.75 (colored)

Migrate `Xr groff 1' -> GNU troff.  I no longer assume that groff is
installed on the host system.

Revision 1.75 / (download) - annotate - [select for diffs], Wed Aug 18 08:40:22 2010 UTC (9 years, 11 months ago) by kristaps
Branch: MAIN
Changes since 1.74: +2 -13 lines
Diff to previous 1.74 (colored)

Remove references to \s in mandoc.1: we no longer document these and just
flat-out ignore them.

Revision 1.74 / (download) - annotate - [select for diffs], Sat Aug 7 17:46:39 2010 UTC (10 years ago) by kristaps
Branch: MAIN
Changes since 1.73: +2 -12 lines
Diff to previous 1.73 (colored)

Remove mandoc.1 compatibility notes that are no longer relevant.

Revision 1.73 / (download) - annotate - [select for diffs], Sun Jul 25 11:44:31 2010 UTC (10 years ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_5
Changes since 1.72: +14 -2 lines
Diff to previous 1.72 (colored)

Initial PDF shim over PS.  This produces working PDF output with -Tpdf.
It's currently missing the xref table, so you'll get a warning in most
PDF viewers).  It also produces lots of redundant output, which will go
away once I get a better handle on the PDF spec.  The code doesn't
really touch any existing functionality; it's a bunch of conditionals
atop the -Tps (term_ps.c) implementation.  I'm checking it in now to
have it exist and be auditable.  It needs clean-up, polish, and general
care (and xref!).

Revision 1.72 / (download) - annotate - [select for diffs], Tue Jul 13 23:53:20 2010 UTC (10 years ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_10_5_PREPDF
Changes since 1.71: +2 -2 lines
Diff to previous 1.71 (colored)

correct lots of copyright notices;
ok kristaps@

Revision 1.71 / (download) - annotate - [select for diffs], Sun Jul 4 20:06:59 2010 UTC (10 years, 1 month ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_4
Changes since 1.70: +2 -1 lines
Diff to previous 1.70 (colored)

Set line-height to be 1.4em.  Removed check for minimum margins that are no
longer important.

Revision 1.70 / (download) - annotate - [select for diffs], Sun Jul 4 19:24:00 2010 UTC (10 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.69: +4 -6 lines
Diff to previous 1.69 (colored)

Backed out margin calculations in favour of much simpler rule of thumb:
margins are 1/9 the length/width.

Revision 1.69 / (download) - annotate - [select for diffs], Sun Jul 4 10:53:04 2010 UTC (10 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.68: +6 -3 lines
Diff to previous 1.68 (colored)

Auto-margins.  Documented in mandoc.1.  Also bumped line-height and made
sure header and footer accomodate for said line-height.

Revision 1.68 / (download) - annotate - [select for diffs], Thu Jul 1 14:23:45 2010 UTC (10 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.67: +13 -4 lines
Diff to previous 1.67 (colored)

First, I'm defaulting to 11-point font, which renders much nicer (the
"Internet" vaguely suggests using 11- or 9-Point for serifed fonts).
This verified on GNU/Linux, Mac OSX, Windows, and OpenBSD.  Noted in
mandoc.1.

Then added a3, a4, a5, letter, legal, and custom page dimensions.  These
seem to be the main players.  Noted in mandoc.1.

Lintified the casting.

Revision 1.67 / (download) - annotate - [select for diffs], Wed Jun 30 20:57:41 2010 UTC (10 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored)

Now using Times AFM provided by Dillo.  Verified on OpenBSD by me and Mac OSX
by M. Deksters.

Revision 1.66 / (download) - annotate - [select for diffs], Tue Jun 29 14:55:41 2010 UTC (10 years, 1 month ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_3
Changes since 1.65: +108 -142 lines
Diff to previous 1.65 (colored)

Remove some incorrect data from mandoc.1 (that of non-macro lines and
spacing, which is for mdoc.7/man.7 anyway).  Also document -Opage=xxx
and push the per-output options into the output subsections.  Makes the
manual shorter and more readable.

Revision 1.65 / (download) - annotate - [select for diffs], Tue Jun 29 14:18:05 2010 UTC (10 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.64: +5 -3 lines
Diff to previous 1.64 (colored)

Give -Tps better PostScript hinting.  Note that we're using Adobe-3.0
constructs.  Push the stupid CPP defines for page boundaries and margins
into proper variables.  Give enum termfont a proper TERMFONT__MAX.

Revision 1.64 / (download) - annotate - [select for diffs], Fri Jun 25 19:02:48 2010 UTC (10 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.63: +12 -8 lines
Diff to previous 1.63 (colored)

Allow OpenBSD's nroff to process mandoc.1 without puking on long `It'
lines.

Revision 1.63 / (download) - annotate - [select for diffs], Fri Jun 11 07:15:42 2010 UTC (10 years, 1 month ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_2
Changes since 1.62: +2 -2 lines
Diff to previous 1.62 (colored)

Note that we use PostScript level 2, not 1 (the /Courier invocation).

Revision 1.62 / (download) - annotate - [select for diffs], Mon Jun 7 20:57:09 2010 UTC (10 years, 2 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_1
Changes since 1.61: +11 -2 lines
Diff to previous 1.61 (colored)

First check-in of PostScript output.  This does not change any logic
within term.c, but does add a small shim over putchar() that switches on
the output engine.  Prints, for this initial version, only monospace and
without font decorations.  It's a start.

Revision 1.61 / (download) - annotate - [select for diffs], Mon Jun 7 10:55:27 2010 UTC (10 years, 2 months ago) by kristaps
Branch: MAIN
Changes since 1.60: +14 -4 lines
Diff to previous 1.60 (colored)

Forgot to check in manual along with -Owidth=width patch.

Revision 1.60 / (download) - annotate - [select for diffs], Sun May 9 21:19:42 2010 UTC (10 years, 3 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_25
Changes since 1.59: +4 -7 lines
Diff to previous 1.59 (colored)

Remove -fno-ign-chars as well-argued by Ingo Schwarze.  Patch by Ingo Schwarze, too.

Revision 1.59 / (download) - annotate - [select for diffs], Tue Apr 13 05:26:49 2010 UTC (10 years, 3 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_24
Changes since 1.58: +4 -80 lines
Diff to previous 1.58 (colored)

As per Jason McIntyre's heartful urgings, do away with '.' separators between logical sections.
Change email address to BSD.lv one (this is not an academic project...)

Revision 1.58 / (download) - annotate - [select for diffs], Mon Apr 12 19:27:22 2010 UTC (10 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.57: +94 -95 lines
Diff to previous 1.57 (colored)

Merge patch by Jason McIntyre cleaning on mandoc.1: `Ar' -> `Cm' and other readability fixes.
Merge modified patch by Joerg Sonnenberger that rewinds to whitespace when encountering trailing line-comments.

Revision 1.57 / (download) - annotate - [select for diffs], Thu Apr 8 07:40:03 2010 UTC (10 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.56: +66 -37 lines
Diff to previous 1.56 (colored)

Merged Jason McIntyre's "new-sentence, new-line" patch along with Ingo Schwarze' "gt" patch.

Revision 1.56 / (download) - annotate - [select for diffs], Mon Mar 29 10:10:35 2010 UTC (10 years, 4 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_23, VERSION_1_9_22, VERSION_1_9_21, VERSION_1_9_20
Changes since 1.55: +3 -2 lines
Diff to previous 1.55 (colored)

Final (?) fix to issue pointed out by Sascha Wildner: roff instructions clobbering prior scope rules and line modes.

Revision 1.55 / (download) - annotate - [select for diffs], Sat Mar 27 14:44:19 2010 UTC (10 years, 4 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_19
Changes since 1.54: +4 -3 lines
Diff to previous 1.54 (colored)

Fix mandoc.1 ending (noted by Sascha Wildner).

Revision 1.54 / (download) - annotate - [select for diffs], Sat Mar 27 10:10:10 2010 UTC (10 years, 4 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_18
Changes since 1.53: +10 -2 lines
Diff to previous 1.53 (colored)

Documentation of apostrophe control character.

Revision 1.53 / (download) - annotate - [select for diffs], Thu Mar 25 07:28:16 2010 UTC (10 years, 4 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_17
Changes since 1.52: +8 -1 lines
Diff to previous 1.52 (colored)

Fixed up some documentation in man.7: only documenting man.7 macros, not related ones (de, Vb, etc.), which aren't technically man.  It's an open question as to where these /should/ be documented, however.

Revision 1.52 / (download) - annotate - [select for diffs], Mon Mar 22 20:43:00 2010 UTC (10 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.51: +10 -4 lines
Diff to previous 1.51 (colored)

Have -Tlint imply -Wall and -fstrict.  Based on a patch submitted by Ingo Schwarze.

Revision 1.51 / (download) - annotate - [select for diffs], Mon Mar 22 14:03:03 2010 UTC (10 years, 4 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_16
Changes since 1.50: +16 -4 lines
Diff to previous 1.50 (colored)

Clarify -man -T[x]html handling of `br' within `B'.
Consolidated node unlinking in -man.
Conclude nested next-line scope issues noted by Ingo Schwarze.

Revision 1.50 / (download) - annotate - [select for diffs], Fri Jan 29 14:39:38 2010 UTC (10 years, 6 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_15
Changes since 1.49: +26 -5 lines
Diff to previous 1.49 (colored)

Fixed Makefile for `make lint' dep. on config.h
Added -Txhtml for XHTML output (minimal increase to programme logic).  Because groff has it and it bothers me that we don't.

Revision 1.49 / (download) - annotate - [select for diffs], Thu Jan 7 19:10:09 2010 UTC (10 years, 7 months ago) by kristaps
Branch: MAIN
Changes since 1.48: +11 -11 lines
Diff to previous 1.48 (colored)

Fix white-space issues found by mandoc's better white-space finder.
Fixed bogus `\\' escapes in some manuals.

Revision 1.48 / (download) - annotate - [select for diffs], Mon Nov 16 09:52:47 2009 UTC (10 years, 8 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_15-pre2, VERSION_1_9_15-pre1, VERSION_1_9_14
Changes since 1.47: +121 -55 lines
Diff to previous 1.47 (colored)

More clarification in manuals.  Added per-OUTPUT section in mandoc.1.

Revision 1.47 / (download) - annotate - [select for diffs], Mon Nov 16 08:46:59 2009 UTC (10 years, 8 months ago) by kristaps
Branch: MAIN
Changes since 1.46: +13 -5 lines
Diff to previous 1.46 (colored)

Enabled -Thtml -mdoc to work with \f (see compat notes in mandoc.1).

Revision 1.46 / (download) - annotate - [select for diffs], Thu Nov 5 10:16:01 2009 UTC (10 years, 9 months ago) by kristaps
Branch: MAIN
Changes since 1.45: +12 -1 lines
Diff to previous 1.45 (colored)

Documented that `\s' and `\f' don't work in HTML mode (and why).
Added support for recognising the many forms of `\s' (doesn't yet render).

Revision 1.45 / (download) - annotate - [select for diffs], Mon Oct 26 15:44:51 2009 UTC (10 years, 9 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_13, VERSION_1_9_12
Changes since 1.44: +6 -1 lines
Diff to previous 1.44 (colored)

Merged patch to allow -fign-escape (thanks Joerg Sonnenberger).

Revision 1.44 / (download) - annotate - [select for diffs], Mon Oct 26 04:15:42 2009 UTC (10 years, 9 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_11, VERSION_1_9_10
Changes since 1.43: +7 -7 lines
Diff to previous 1.43 (colored)

Changed `-o' to `-O' for clarity.  THIS BREAKS UTILITIES DEPENDING ON -o!

Revision 1.43 / (download) - annotate - [select for diffs], Thu Oct 15 02:42:53 2009 UTC (10 years, 9 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_9
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored)

Fix in mandoc.1 and mandoc_char.7 syntax (submitted Joerg Sonnenberger).
Added note on character format per output type.

Revision 1.42 / (download) - annotate - [select for diffs], Sat Oct 10 11:05:23 2009 UTC (10 years, 9 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_8
Changes since 1.41: +21 -1 lines
Diff to previous 1.41 (colored)

Fix hang lists in -Tascii -Tmdoc, which seem to have been broken since ~1.8.x.
Noted similarity of HP/TP and -hang/-tag in mandoc.1.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Oct 3 16:36:06 2009 UTC (10 years, 10 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_7
Changes since 1.40: +6 -6 lines
Diff to previous 1.40 (colored)

Fixed mandoc.1 examples (new -Thtml options).
Fixed manuals to use `In', not `Fd'.
Moved buf* functions into html.c.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Oct 3 15:26:26 2009 UTC (10 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.39: +19 -3 lines
Diff to previous 1.39 (colored)

Added the -oincludes=FMT option.
The `In' handler now decorates with a hyperlink.
If no -oman= or -oincludes= is stipulated, no link is printed (but the text is still style-decorated).

Revision 1.39 / (download) - annotate - [select for diffs], Sat Oct 3 15:08:09 2009 UTC (10 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.38: +19 -8 lines
Diff to previous 1.38 (colored)

Element tag buffer is now part of struct html.
buffmt() can be called in sequence.
Noted BUFSIZ-sized buffer in CAVEATS (attribute length for link formats).
Added -oman=FMT -Thtml option for `Xr' manual links.
Removed -obase=URI -Thtml option (obsolete).

Revision 1.38 / (download) - annotate - [select for diffs], Mon Sep 21 13:44:56 2009 UTC (10 years, 10 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_6, VERSION_1_9_5
Changes since 1.37: +7 -1 lines
Diff to previous 1.37 (colored)

Fixed body/divbody structure of html pages.
Added example style.css (example.style.css).
Enabled using -Thtml to generate manuals in Makefile.
Stopped making text manuals for webpage.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Sep 21 13:06:13 2009 UTC (10 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.36: +33 -16 lines
Diff to previous 1.36 (colored)

Removed new-born out.{h,c} (not a good idea).
Removed if 0 for HTML-mode output (why not).
Added option -oxxxx for passing options to output devices.

Revision 1.36 / (download) - annotate - [select for diffs], Tue Sep 15 08:16:20 2009 UTC (10 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

Removed TERMP_BOLD, TERMP_UNDER, TERMP_STYLE in favour of recursive-friendly increments.
Cleaned up confusing behaviour of p->flags.

Revision 1.35 / (download) - annotate - [select for diffs], Sat Sep 5 10:30:51 2009 UTC (10 years, 11 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_2
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)

Typo fix (jmc@openbsd.org).

Revision 1.34 / (download) - annotate - [select for diffs], Sat Aug 22 09:10:38 2009 UTC (10 years, 11 months ago) by kristaps
Branch: MAIN
Changes since 1.33: +3 -5 lines
Diff to previous 1.33 (colored)

Added `UC' libman macro (has no effect).
Corrected `UC' and `DT' not to print their arguments.
Noted that `UC' and `DT' shouldn't be used.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Aug 20 12:26:15 2009 UTC (10 years, 11 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_1
Changes since 1.32: +4 -6 lines
Diff to previous 1.32 (colored)

Small cleanup in mandoc.1.

Revision 1.32 / (download) - annotate - [select for diffs], Thu Aug 20 12:08:40 2009 UTC (10 years, 11 months ago) by kristaps
Branch: MAIN
Changes since 1.31: +86 -46 lines
Diff to previous 1.31 (colored)

Documented omission of `na' and `Dt'.
Clarified COMPATIBILITY section (which modes/inputs).

Revision 1.31 / (download) - annotate - [select for diffs], Thu Aug 20 11:51:07 2009 UTC (10 years, 11 months ago) by kristaps
Branch: MAIN
Changes since 1.30: +2 -1 lines
Diff to previous 1.30 (colored)

Added `DT' macro (pointed out by joerg@netbsd.org).

Revision 1.30 / (download) - annotate - [select for diffs], Wed Aug 19 09:14:50 2009 UTC (10 years, 11 months ago) by kristaps
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

Added RS/RE macro pair (had to adjust closing rules, sec/ssec/rs/par).

Revision 1.29 / (download) - annotate - [select for diffs], Sun Jul 26 19:30:50 2009 UTC (11 years ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_0, VERSION_1_8_5
Changes since 1.28: +11 -3 lines
Diff to previous 1.28 (colored)

Removed POSIX.1 COMPATIBILITY note in mdoc.7.
Noted that \~ doesn't work in mandoc.1 (thanks uqs@sporlein.net).

Revision 1.28 / (download) - annotate - [select for diffs], Fri Jul 24 14:00:59 2009 UTC (11 years ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_8_4
Changes since 1.27: +11 -1 lines
Diff to previous 1.27 (colored)

Added -fign-errors for VERY fast checking of many manuals without stopping at errors.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Jul 21 15:52:41 2009 UTC (11 years ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_8_3
Changes since 1.26: +16 -7 lines
Diff to previous 1.26 (colored)

Noted COMPATIBILITY where, in groff, `Pa' under `It' doesn't render its style.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Jul 20 13:45:11 2009 UTC (11 years ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_8_2
Changes since 1.25: +37 -37 lines
Diff to previous 1.25 (colored)

Removed trailing whitespace in manuals.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Jul 14 15:57:43 2009 UTC (11 years ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_8_1, VERSION_1_8_0
Changes since 1.24: +1 -9 lines
Diff to previous 1.24 (colored)

Ceremonial removal of "-hang lists not supported".  Candlelight, romantic music, etc.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jul 6 09:34:29 2009 UTC (11 years, 1 month ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_7_24, VERSION_1_7_23
Changes since 1.23: +4 -8 lines
Diff to previous 1.23 (colored)

Backed -Wcompat,syntax out of front-end.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Jun 25 10:51:55 2009 UTC (11 years, 1 month ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_7_22, VERSION_1_7_21
Changes since 1.22: +4 -5 lines
Diff to previous 1.22 (colored)

Language clarification in mandoc.1 (schwarze@openbsd.org).

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jun 22 12:04:05 2009 UTC (11 years, 1 month ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_7_20
Changes since 1.21: +18 -6 lines
Diff to previous 1.21 (colored)

Added "Spacing" part of "Punctuation and Spacing" in mandoc.1 manual.
Fixed `Ds' meta-macro default width.
Fixed -width and -offset "indent", "indent-two", and "left" widths.
Fixed -width and -offset literal-word and numeric widths.
Fixed off-by-one errors in whitespace output (schwarze@openbsd.org).

Revision 1.21 / (download) - annotate - [select for diffs], Thu Jun 18 08:13:34 2009 UTC (11 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.20: +16 -14 lines
Diff to previous 1.20 (colored)

mandoc.1 reflects actual use of -f option (schwarze@openbsd.org)

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jun 17 19:12:03 2009 UTC (11 years, 1 month ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_7_19
Changes since 1.19: +26 -34 lines
Diff to previous 1.19 (colored)

Bumped version.
Removed CVS note from index (they'll contact me if they need it).
Properly ordered mandoc.1 CAVEATS/COMPATIBILITY.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Jun 15 09:35:16 2009 UTC (11 years, 1 month ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_7_17
Changes since 1.18: +6 -6 lines
Diff to previous 1.18 (colored)

Manual-aesthetics fix (schwarze@openbsd.org).

Revision 1.18 / (download) - annotate - [select for diffs], Thu Jun 11 07:26:35 2009 UTC (11 years, 1 month ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_7_16, VERSION_1_7_15, VERSION_1_7_14
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Fixed email address in manual AUTHOR reference.
Set max right margin to 80 columns (schwarze@openbsd.org).
Fixed centre-field heading position (schwarze@openbsd.org).
Also fixed -Tman centre-field.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Jun 10 20:18:43 2009 UTC (11 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Fixed license email address.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Apr 12 19:45:26 2009 UTC (11 years, 3 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_7_13
Changes since 1.15: +10 -12 lines
Diff to previous 1.15 (colored)

Using proper license template (const).

Revision 1.15 / (download) - annotate - [select for diffs], Sun Apr 12 19:30:45 2009 UTC (11 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

Spelling "preceed" -> "precede" (naddy).

Revision 1.14 / (download) - annotate - [select for diffs], Sun Apr 12 19:19:57 2009 UTC (11 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

Manual .Dt fields CAPITALISED.
Indent set to 5 chars (nroff compat).
Half-indent set to 3 chars (nroff compat).
Default behaviour is loose-y (ignore macro/char/escape).
Added -fstrict.
Added unknown-character ignoring.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Apr 5 16:34:22 2009 UTC (11 years, 4 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_7_12, VERSION_1_7_10, OPENBSD_CHECKIN
Changes since 1.12: +53 -47 lines
Diff to previous 1.12 (colored)

man(3) doesn't use err.h anymore.
Added .i to man(3).
Fixed up manuals.
Fixed up webpage.
Assertion fixes in man(3) (hashtable).
Fixed assertion for .IP in mandoc -man.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Apr 2 16:42:35 2009 UTC (11 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.11: +23 -5 lines
Diff to previous 1.11 (colored)

Documented -mandoc behaviour.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Mar 26 16:44:22 2009 UTC (11 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.10: +12 -1 lines
Diff to previous 1.10 (colored)

Added simple font-escapes.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Mar 26 16:23:22 2009 UTC (11 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.9: +8 -13 lines
Diff to previous 1.9 (colored)

All macro-invocations, for consistency, begin with `.' in documentation.
Fixed \\ -> \e in manual documentation.
All preliminary -man macros in place.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Mar 23 16:02:56 2009 UTC (11 years, 4 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_7_5
Changes since 1.8: +3 -2 lines
Diff to previous 1.8 (colored)

Initial documentation in place for man.7.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Mar 23 15:41:09 2009 UTC (11 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.7: +43 -8 lines
Diff to previous 1.7 (colored)

-man linked to mandoc in documentation.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Mar 23 09:42:43 2009 UTC (11 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.6: +27 -12 lines
Diff to previous 1.6 (colored)

More manual documentation fixed/improved.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Mar 22 19:08:53 2009 UTC (11 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.5: +1 -6 lines
Diff to previous 1.5 (colored)

Removed Xo/Xc no-support notices.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Mar 21 21:09:00 2009 UTC (11 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.4: +11 -2 lines
Diff to previous 1.4 (colored)

Fixes to dynamic addition of Bl width.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Mar 21 13:09:29 2009 UTC (11 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.3: +40 -5 lines
Diff to previous 1.3 (colored)

`Em' accepts empty tokens.
Punctuation fully fixed (per-reserved-word).
Sm enabled.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Mar 20 15:14:01 2009 UTC (11 years, 4 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_6_5, VERSION_1_6_2
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

Support for `Bd' of all types (see mdoc.7 for newline/tab rules).
Renamed term.c and terminal.c functions to be term_.
Some bugfixes to lists.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Mar 19 18:30:26 2009 UTC (11 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.1: +4 -2 lines
Diff to previous 1.1 (colored)

Fixed mandoc read from stdin.
Added some more groff_chars.

Revision 1.1 / (download) - annotate - [select for diffs], Thu Mar 19 16:17:27 2009 UTC (11 years, 4 months ago) by kristaps
Branch: MAIN

Split mdocterm.c -> main.c terminal.c.
Abstracted output with -T selector (default ascii).
Name change: mdocterm -> mandoc.
Re-imported tree with -Ttree.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb