]> git.cameronkatri.com Git - mandoc.git/log
mandoc.git
14 years agosync to OpenBSD:
Ingo Schwarze [Sun, 26 Sep 2010 23:05:46 +0000 (23:05 +0000)]
sync to OpenBSD:
new sentence, new line;
from jmc@

14 years agoIf an explicit scope is still open at the end of an input file,
Ingo Schwarze [Sun, 26 Sep 2010 20:22:28 +0000 (20:22 +0000)]
If an explicit scope is still open at the end of an input file,
report an ERROR:  We can still render the page by just closing
the open scope, but it is likely that information will be missing
or document structure mangled.
Before, man(7) only reported a WARNING (which is dangerous because
we cannot be sure rendering is correct) and mdoc(7) ran into FATAL
(which is too drastic, there is no reason not to show what we have).
"looks good" kristaps@

14 years agosync to OpenBSD:
Ingo Schwarze [Sun, 26 Sep 2010 19:46:48 +0000 (19:46 +0000)]
sync to OpenBSD:
note that IMPLEMENTATION NOTES is not used in OpenBSD
add missing comma in "sections 1, 6, & 8 only" below EXIT STATUS
below SEE ALSO, add an .Xr to man(1), and from man(7) to mdoc(7)

14 years agoConsolidated all -T[x]html punctuation macros into one function.
Kristaps Dzonsons [Sun, 26 Sep 2010 10:32:14 +0000 (10:32 +0000)]
Consolidated all -T[x]html punctuation macros into one function.

14 years agoLinted function arguments.
Kristaps Dzonsons [Sun, 26 Sep 2010 10:00:42 +0000 (10:00 +0000)]
Linted function arguments.

14 years agoBig clean-up consolidating all punctuation opening/closing functions into
Kristaps Dzonsons [Sun, 26 Sep 2010 09:16:02 +0000 (09:16 +0000)]
Big clean-up consolidating all punctuation opening/closing functions into
a single one.  This makes code auditing easier and cuts down on
bytesize.

I also removed some NOSPACE clauses that were handled implicitly by the
punctuation itself, e.g., a NOSPACE prior to printing ')', which in
term.c has its leading whitespace automatically suppressed.

14 years agoRemove fixed TODO and add a new one.
Kristaps Dzonsons [Sat, 25 Sep 2010 16:52:15 +0000 (16:52 +0000)]
Remove fixed TODO and add a new one.

14 years agoA `%T' invoked outside of `Rs' should not produce trailing punctuation.
Kristaps Dzonsons [Sat, 25 Sep 2010 16:41:33 +0000 (16:41 +0000)]
A `%T' invoked outside of `Rs' should not produce trailing punctuation.
This from a TODO entry.  Also stripped the superfluous NOSPACE, which is
handled in term_word() or print_text() anyway.

14 years agoAdd `Rs' vertical-space in -T[x]html "SEE ALSO" section. Remove
Kristaps Dzonsons [Sat, 25 Sep 2010 15:51:30 +0000 (15:51 +0000)]
Add `Rs' vertical-space in -T[x]html "SEE ALSO" section.  Remove
corresponding TODO entry.

Also have the "." after an `Rs' block trigger inter-sentence spacing.

14 years agoRemoved TODO that was fixed by parsing escapes in offset strings.
Kristaps Dzonsons [Sat, 25 Sep 2010 15:29:12 +0000 (15:29 +0000)]
Removed TODO that was fixed by parsing escapes in offset strings.

14 years agoWhen the HEAD of an .Nm block in the SYNOPSIS might be wider
Ingo Schwarze [Thu, 23 Sep 2010 20:40:00 +0000 (20:40 +0000)]
When the HEAD of an .Nm block in the SYNOPSIS might be wider
than the column containing it, the TERMP_HANG flag is required,
but avoid the flag when we know that the HEAD is shorter,
because in that case, the flag might ruin the alignment.

Problem originally reported by jmc@, who also spotted a regression
in an earlier version of this patch.

"feel free to commit" kristaps@

14 years agoCount trailing escaped blanks correctly;
Ingo Schwarze [Thu, 23 Sep 2010 20:26:00 +0000 (20:26 +0000)]
Count trailing escaped blanks correctly;
those ruined the alignment of columns.
Tested by jmc@, and kristaps@ agrees with the direction.

14 years agoenclosures sometimes cause bogus end-of-sentence
Ingo Schwarze [Thu, 23 Sep 2010 19:52:36 +0000 (19:52 +0000)]
enclosures sometimes cause bogus end-of-sentence

14 years agoAllow string lengths to account for escapes. Now all calls to calculate
Kristaps Dzonsons [Wed, 15 Sep 2010 14:36:16 +0000 (14:36 +0000)]
Allow string lengths to account for escapes.  Now all calls to calculate
column width in -Tascii, -Tpdf, and -Tps will account for "more real"
string lengths.

Example:

.Bl -tag -width \s[+123424]foo
.It bar
baz
.El

The size escape will be correctly tossed.

.Bl -tag -width \(aqbar
.It \(aqbar
baz
.El

The \(aq will be correctly handled.

14 years agoRemove last pod2man escapes. These render ok, although \*(-- renders as
Kristaps Dzonsons [Wed, 15 Sep 2010 13:10:30 +0000 (13:10 +0000)]
Remove last pod2man escapes.  These render ok, although \*(-- renders as
O- because the underlying macro depends on \(*W, which a prior pod2man
preamble `tr' macro rewrites as "-".  This is an error in groff as this
tramples on the real \(*W, or Greek omega.

14 years agoPrevent .Lp from looping endlessly on punctuation.
Ingo Schwarze [Mon, 13 Sep 2010 20:15:43 +0000 (20:15 +0000)]
Prevent .Lp from looping endlessly on punctuation.
Same fix as the previous one.

14 years agoPrevent `Pp' from looping endlessly on punctuation. Bug reported by
Kristaps Dzonsons [Mon, 13 Sep 2010 12:21:34 +0000 (12:21 +0000)]
Prevent `Pp' from looping endlessly on punctuation.  Bug reported by
Marc Espie.

14 years agoFound nit in -T[x]html.
Kristaps Dzonsons [Wed, 8 Sep 2010 11:57:29 +0000 (11:57 +0000)]
Found nit in -T[x]html.

14 years agoChurny commit to quiet lint. No functional changes.
Kristaps Dzonsons [Sat, 4 Sep 2010 20:18:53 +0000 (20:18 +0000)]
Churny commit to quiet lint.  No functional changes.

14 years agoProperly handle -mdoc %A in all outputs. This has two-author entires
Kristaps Dzonsons [Sat, 4 Sep 2010 19:01:52 +0000 (19:01 +0000)]
Properly handle -mdoc %A in all outputs.  This has two-author entires
separated by only "and" while two or more are with ", and" for the last
author.

Also remove relevant TODO and add regression tests.

14 years agoRemoved 'br\} comment from TODO. This was fixed a few weeks ago.
Kristaps Dzonsons [Sat, 4 Sep 2010 18:52:21 +0000 (18:52 +0000)]
Removed 'br\} comment from TODO.  This was fixed a few weeks ago.

14 years agoFix premature return from sub-conditional roff statements. This fix
Kristaps Dzonsons [Sat, 4 Sep 2010 18:31:44 +0000 (18:31 +0000)]
Fix premature return from sub-conditional roff statements.  This fix
fully accomodates for the pod2man standard preamble!

14 years agoClarified EXIT STATUS sections. Discussed among schwarze@, Thomas, and
Kristaps Dzonsons [Sat, 4 Sep 2010 17:22:41 +0000 (17:22 +0000)]
Clarified EXIT STATUS sections.  Discussed among schwarze@, Thomas, and
Jason.  Patch by Jason.

14 years agoRemove the pod2man table entries. They can now be properly read and
Kristaps Dzonsons [Sun, 29 Aug 2010 11:36:49 +0000 (11:36 +0000)]
Remove the pod2man table entries.  They can now be properly read and
assigned within the pod2man preamble.

14 years agoAllow `.xx\}' where xx is a macro (e.g., `.br\}') to close scope. This is
Kristaps Dzonsons [Sun, 29 Aug 2010 11:29:51 +0000 (11:29 +0000)]
Allow `.xx\}' where xx is a macro (e.g., `.br\}') to close scope.  This is
experimental and hasn't been rigorously tested.  It's only implemented in
-mdoc for the time being.  This is absolutely required for pod2man.  It
does, however, make the pod2man preamble be processed in full.

14 years agoRemove overstrike `\o'. This isn't the best solution because we really
Kristaps Dzonsons [Sun, 29 Aug 2010 11:28:09 +0000 (11:28 +0000)]
Remove overstrike `\o'.  This isn't the best solution because we really
should be printing the contents, but for the time being, this is good
enough.

14 years agoMade -mdoc `Pp', `Lp', and `br' not FATAL when having arguments.
Kristaps Dzonsons [Sun, 29 Aug 2010 10:30:58 +0000 (10:30 +0000)]
Made -mdoc `Pp', `Lp', and `br' not FATAL when having arguments.

14 years agoMove mdoc/man template "The next is for" into the section itself. Added
Kristaps Dzonsons [Sat, 28 Aug 2010 22:08:38 +0000 (22:08 +0000)]
Move mdoc/man template "The next is for" into the section itself.  Added
OpenBSD compatibility notes.  Based on a patch by Jason McIntyre.

14 years ago"sys/param.h is for kernel interface programs.
Kristaps Dzonsons [Thu, 26 Aug 2010 13:00:59 +0000 (13:00 +0000)]
"sys/param.h is for kernel interface programs.
sys/types.h is the file you want to include."

From a downstream fix by deraadt@.

14 years agoFixed HISTORY to note mdoc's rewrite in groff-1.17, not groff-1.20.
Kristaps Dzonsons [Tue, 24 Aug 2010 14:03:46 +0000 (14:03 +0000)]
Fixed HISTORY to note mdoc's rewrite in groff-1.17, not groff-1.20.

14 years agoHandle nested, recursive mathematical subexpressions. This is
Kristaps Dzonsons [Tue, 24 Aug 2010 13:56:51 +0000 (13:56 +0000)]
Handle nested, recursive mathematical subexpressions.  This is
definitely not general, but it's good enough for pod2man definitions
(after I clean up the roff, which will be addressed in later fixes).

14 years agoStrip out `\k' escape.
Kristaps Dzonsons [Tue, 24 Aug 2010 13:39:37 +0000 (13:39 +0000)]
Strip out `\k' escape.

14 years agoStripping out of `\w' groff escape. Yet another for pod2man...
Kristaps Dzonsons [Tue, 24 Aug 2010 13:07:01 +0000 (13:07 +0000)]
Stripping out of `\w' groff escape.  Yet another for pod2man...

14 years agoHave the `ds' processor strip out `\\' as stipulated in groff.7. I only
Kristaps Dzonsons [Tue, 24 Aug 2010 12:48:43 +0000 (12:48 +0000)]
Have the `ds' processor strip out `\\' as stipulated in groff.7.  I only
care because pod2man uses this construct.

14 years agoStrip out the `\z' escape. This is the first recursive sequence,
Kristaps Dzonsons [Tue, 24 Aug 2010 12:18:48 +0000 (12:18 +0000)]
Strip out the `\z' escape.  This is the first recursive sequence,
getting mandoc ready to handle pod2man's complex escapes.

14 years agoAdd a short HISTORY section to mdoc.7. Facts provided by schwarze@'s
Kristaps Dzonsons [Sun, 22 Aug 2010 15:49:28 +0000 (15:49 +0000)]
Add a short HISTORY section to mdoc.7.  Facts provided by schwarze@'s
detective-work in the UNIX archives.

14 years agoSort COMPATIBILITY in mdoc(7) (from schwarze@).
Kristaps Dzonsons [Sun, 22 Aug 2010 14:54:29 +0000 (14:54 +0000)]
Sort COMPATIBILITY in mdoc(7) (from schwarze@).

Update escape COMPATIBILITY in mdoc(7) and man(7) (ok schwarze@).

14 years agoBackout previous.
Ingo Schwarze [Sat, 21 Aug 2010 14:04:13 +0000 (14:04 +0000)]
Backout previous.
As Kristaps found out, i was wrong: .Bl -column phrases do not ignore
spacing rules for trailing punctuation in general.  In particular,
- the rightmost column of a column list is unaffected
- columns terminated by the .Ta macro instead of a tab are unaffected
- columns ending in a blank are unaffected
Spacing rules for trailing punctuation are only ignored when the tab
follows the punctuation immediately, without a blank in between,
because then the combination of punctuation and tab is treated by roff
as a word, and the punctuation is not recognized as isolated.
The reason this doesn't work in mandoc is that in the special case
of .Bl -column (not in general!), mandoc treats tabs as word delimiters.
We either need to solve this differently, or call it a bug in roff.

14 years agoCentralize handling of literal tabs in term_flushln() in one place,
Ingo Schwarze [Fri, 20 Aug 2010 23:34:02 +0000 (23:34 +0000)]
Centralize handling of literal tabs in term_flushln() in one place,
making the code simpler and easier to understand.
No functional change.

14 years agoWhen a column contains trailing spaces, calculate the padding
Ingo Schwarze [Fri, 20 Aug 2010 23:22:09 +0000 (23:22 +0000)]
When a column contains trailing spaces, calculate the padding
to the start of the next column correctly.
Fixing a problem found by jmc@ in sysctl(3), reminded by kettenis@.

14 years ago.Bl -column phrases ignore spacing rules for trailing punctuation
Ingo Schwarze [Fri, 20 Aug 2010 22:51:29 +0000 (22:51 +0000)]
.Bl -column phrases ignore spacing rules for trailing punctuation
and render it just like normal text.
Minimal fix of a formatting bug in operator(7) reported by ray@.

14 years agofix previous: when bailing out due to -Wstop,
Ingo Schwarze [Fri, 20 Aug 2010 08:13:43 +0000 (08:13 +0000)]
fix previous: when bailing out due to -Wstop,
skip output functions, but not *_endparse;
problem reported by kristaps@

14 years agoFixed Makefile auto-generation of manuals not to use -fstrict and [old] -Werror.
Kristaps Dzonsons [Fri, 20 Aug 2010 05:52:59 +0000 (05:52 +0000)]
Fixed Makefile auto-generation of manuals not to use -fstrict and [old] -Werror.

14 years agoImplement a simple, consistent user interface for error handling.
Ingo Schwarze [Fri, 20 Aug 2010 01:02:07 +0000 (01:02 +0000)]
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.

14 years agoUpdated hypermail link to summary.html.
Kristaps Dzonsons [Thu, 19 Aug 2010 20:49:34 +0000 (20:49 +0000)]
Updated hypermail link to summary.html.

14 years agoAdded mail archive periodically generated by hypermail.
Kristaps Dzonsons [Wed, 18 Aug 2010 15:57:16 +0000 (15:57 +0000)]
Added mail archive periodically generated by hypermail.

14 years agoMigrate `Xr groff 1' -> GNU troff. I no longer assume that groff is
Kristaps Dzonsons [Wed, 18 Aug 2010 08:41:40 +0000 (08:41 +0000)]
Migrate `Xr groff 1' -> GNU troff.  I no longer assume that groff is
installed on the host system.

14 years agoRemove references to \s in mandoc.1: we no longer document these and just
Kristaps Dzonsons [Wed, 18 Aug 2010 08:40:22 +0000 (08:40 +0000)]
Remove references to \s in mandoc.1: we no longer document these and just
flat-out ignore them.

14 years agoAdd joerg@'s note that br\} needs work in libroff.
Kristaps Dzonsons [Wed, 18 Aug 2010 08:39:54 +0000 (08:39 +0000)]
Add joerg@'s note that br\} needs work in libroff.

14 years agoRemove \*(C+ from the pre-predefined strings. It is always `ds'-defined
Kristaps Dzonsons [Mon, 16 Aug 2010 09:51:17 +0000 (09:51 +0000)]
Remove \*(C+ from the pre-predefined strings.  It is always `ds'-defined
when being used in manuals.  Since we now support `ds', it's no longer
necessary to account for it.  From a bug report originally by Thomas
Jeunet.

14 years agoAdd \v and \h to ignored escapes. These are in the category of \s.
Kristaps Dzonsons [Mon, 16 Aug 2010 09:37:58 +0000 (09:37 +0000)]
Add \v and \h to ignored escapes.  These are in the category of \s.
Also made sign-less \s-style escapes be ok (this is technically against
what's in the groff.7 manual, but seems pretty widespread).  Noted by
Thomas Jeunet as uglifying the gcc.1 manual.

14 years agoOpenBSD src/sbin was used as a tool to hunt bugs in mandoc.
Ingo Schwarze [Sun, 15 Aug 2010 17:38:41 +0000 (17:38 +0000)]
OpenBSD src/sbin was used as a tool to hunt bugs in mandoc.

14 years agoOpenBSD src/bin was used as a tool to hunt bugs in mandoc.
Ingo Schwarze [Sun, 15 Aug 2010 16:38:35 +0000 (16:38 +0000)]
OpenBSD src/bin was used as a tool to hunt bugs in mandoc.

14 years agoNote first that TODO file should be up to date.
Kristaps Dzonsons [Sat, 14 Aug 2010 09:48:56 +0000 (09:48 +0000)]
Note first that TODO file should be up to date.

Note also that the PDF file should be reduced in case I somehow forget.

14 years agoCorrectly make quotes around `Lk' link-name argument. Noted by Aldis
Kristaps Dzonsons [Mon, 9 Aug 2010 00:07:51 +0000 (00:07 +0000)]
Correctly make quotes around `Lk' link-name argument.  Noted by Aldis
Berzoja.  Also note COMPATIBILITY of groff misformatting `Lk'.

14 years agoCorrectly print `Lk' arguments in -Tascii. Issue raised by Aldis Berzoja.
Kristaps Dzonsons [Mon, 9 Aug 2010 00:00:37 +0000 (00:00 +0000)]
Correctly print `Lk' arguments in -Tascii.  Issue raised by Aldis Berzoja.
Behaviour ok'd by schwarze@.

14 years agosimplify the code copying the macro name, and sync the
Ingo Schwarze [Sun, 8 Aug 2010 14:51:32 +0000 (14:51 +0000)]
simplify the code copying the macro name, and sync the
accompagnying comment between man_pmacro() and mdoc_pmacro();
ok'd by kristaps@ together with main.c rev. 1.102

14 years agoMake sure we really throw away non-ASCII characters.
Ingo Schwarze [Sun, 8 Aug 2010 14:45:59 +0000 (14:45 +0000)]
Make sure we really throw away non-ASCII characters.
For example, on OpenBSD without locale settings,
isgraph(3) returns true for some eight-bit characters.
ok kristaps@

14 years agoClean out the isgraph() checks in mdoc.c and man.c. These code paths
Kristaps Dzonsons [Sat, 7 Aug 2010 20:57:33 +0000 (20:57 +0000)]
Clean out the isgraph() checks in mdoc.c and man.c.  These code paths
were never taken since main.c begin skipping over unrecognisable
characters, so they were noops.

14 years ago"Groff allows the initial macro on a line to be delimited by a space of
Kristaps Dzonsons [Sat, 7 Aug 2010 20:33:55 +0000 (20:33 +0000)]
"Groff allows the initial macro on a line to be delimited by a space of
by a tab; so allow the tab in mandoc, too."  Original problem noted by
schwarze@.  Sync with OpenBSD.

14 years agoAdd TODO noted by Alex Kozlov.
Kristaps Dzonsons [Sat, 7 Aug 2010 17:52:36 +0000 (17:52 +0000)]
Add TODO noted by Alex Kozlov.

14 years agoRemove mandoc.1 compatibility notes that are no longer relevant.
Kristaps Dzonsons [Sat, 7 Aug 2010 17:46:39 +0000 (17:46 +0000)]
Remove mandoc.1 compatibility notes that are no longer relevant.

14 years agosame as mdoc_term.c rev. 1.180:
Ingo Schwarze [Sat, 7 Aug 2010 17:20:17 +0000 (17:20 +0000)]
same as mdoc_term.c rev. 1.180:
preserve blank lines at the end of .Bd -literal
patch from kristaps@, who asked me to commit this

14 years agomerge from OpenBSD mdoc_term.c rev. 1.100:
Ingo Schwarze [Sat, 7 Aug 2010 17:11:17 +0000 (17:11 +0000)]
merge from OpenBSD mdoc_term.c rev. 1.100:
preserve blank lines in .Bd -literal,
both in the middle and at the end of the display
ok kristaps@

14 years agoRemoved cross-reference to groff(1) in favour of simply mentioning GNU
Kristaps Dzonsons [Sat, 7 Aug 2010 10:31:32 +0000 (10:31 +0000)]
Removed cross-reference to groff(1) in favour of simply mentioning GNU
troff.  This removes the last groff(1) `Xr'.

14 years agoAdded serial comma.
Kristaps Dzonsons [Sat, 7 Aug 2010 10:26:07 +0000 (10:26 +0000)]
Added serial comma.

Put "remarks" for `%C' into COMPATIBILITY.

14 years ago`In' comes before `Vt' in function example of SYNOPSIS.
Kristaps Dzonsons [Sat, 7 Aug 2010 10:18:36 +0000 (10:18 +0000)]
`In' comes before `Vt' in function example of SYNOPSIS.

14 years agoClarify that predefined strings aren't groff-isms, they're troff-isms.
Kristaps Dzonsons [Sat, 7 Aug 2010 09:56:12 +0000 (09:56 +0000)]
Clarify that predefined strings aren't groff-isms, they're troff-isms.

14 years agotweaks from jmc@:
Ingo Schwarze [Fri, 6 Aug 2010 17:09:58 +0000 (17:09 +0000)]
tweaks from jmc@:
* correct a few obvious mistakes
* adopt some of jmc@'s recent changes to man(7)
* cut down just a little on the awful tendency
  to stick a hyphen between two words.

14 years agomerge from OpenBSD:
Ingo Schwarze [Fri, 6 Aug 2010 17:07:11 +0000 (17:07 +0000)]
merge from OpenBSD:
- HISTORY is interesting even when there are STANDARDS
- more precise instructions what to put into AUTHORS
- add the version argument to the mdoc(7) .Os macro

14 years agoIMPORTANT FIX: add missing braces around alloc failure conditional in
Kristaps Dzonsons [Fri, 6 Aug 2010 16:07:35 +0000 (16:07 +0000)]
IMPORTANT FIX: add missing braces around alloc failure conditional in
fuction-isation of PS_GROWBUF.  Obviously the original commit was never
actually tested, as -Tps and -Tpdf errored out immediately.

14 years agoTurn the non-trivial PS_GROWBUF macro into a function. Don't use MAX, it
Joerg Sonnenberger [Sun, 1 Aug 2010 15:46:18 +0000 (15:46 +0000)]
Turn the non-trivial PS_GROWBUF macro into a function. Don't use MAX, it
doesn't exist in the default namespace on Solaris.

14 years agoSync to OpenBSD: add missing Copyright years.
Ingo Schwarze [Sat, 31 Jul 2010 23:52:58 +0000 (23:52 +0000)]
Sync to OpenBSD: add missing Copyright years.
I checked that substantial changes were committed
to these files during these years.

14 years agoDon't crash for the following test case as reported by Jordan Gordeev:
Joerg Sonnenberger [Fri, 30 Jul 2010 17:14:09 +0000 (17:14 +0000)]
Don't crash for the following test case as reported by Jordan Gordeev:
.Bl -tag
.It
foo
...

14 years agoUse 0 for MAP_FILE if it doesn't exist. From Hans Rosenfeld.
Joerg Sonnenberger [Thu, 29 Jul 2010 22:00:39 +0000 (22:00 +0000)]
Use 0 for MAP_FILE if it doesn't exist. From Hans Rosenfeld.

14 years agoAdd PDF files to www. We also show text and ps, just to show off. VERSION_1_10_5
Kristaps Dzonsons [Tue, 27 Jul 2010 20:16:44 +0000 (20:16 +0000)]
Add PDF files to www.  We also show text and ps, just to show off.

14 years agoGet version bits in: 1.10.5.
Kristaps Dzonsons [Tue, 27 Jul 2010 20:02:52 +0000 (20:02 +0000)]
Get version bits in: 1.10.5.

14 years agoNo-op to shut up lint.
Kristaps Dzonsons [Tue, 27 Jul 2010 19:56:50 +0000 (19:56 +0000)]
No-op to shut up lint.

14 years agoFix `ds' handling. This was stripping characters from "val", when the
Kristaps Dzonsons [Tue, 27 Jul 2010 13:16:00 +0000 (13:16 +0000)]
Fix `ds' handling.  This was stripping characters from "val", when the
syntax of `ds' is such that ALL text following the first
non-space/non-double-quote is part of the value.  This also fixes the
warning of *(string++) = NULL report by kristaps@ and joerg@.

14 years agoNit-picking style of www page.
Kristaps Dzonsons [Tue, 27 Jul 2010 08:50:16 +0000 (08:50 +0000)]
Nit-picking style of www page.

14 years agoFill in more version notes.
Kristaps Dzonsons [Tue, 27 Jul 2010 08:48:21 +0000 (08:48 +0000)]
Fill in more version notes.

14 years agoUpdate TODO to note that %A needs "and" before final author and that
Kristaps Dzonsons [Tue, 27 Jul 2010 08:46:30 +0000 (08:46 +0000)]
Update TODO to note that %A needs "and" before final author and that
joerg@ has some tbl(1) patches lying around that need merging.

14 years agoRemoved boot_config.8 breakage, which was fixed by the last commit of
Kristaps Dzonsons [Tue, 27 Jul 2010 08:39:36 +0000 (08:39 +0000)]
Removed boot_config.8 breakage, which was fixed by the last commit of
`Bd -literal' and `Bd -unfilled' unbreakage.

14 years agoFix how `Bd -unfilled' and `Bd -literal' break lines. This unbreaks
Kristaps Dzonsons [Tue, 27 Jul 2010 08:38:04 +0000 (08:38 +0000)]
Fix how `Bd -unfilled' and `Bd -literal' break lines.  This unbreaks
displays to work as old groff shows them; however, new groff still does
some fancy shit.

14 years ago`Ad' is supposed to underline. Found whilst trolling through manuals.
Kristaps Dzonsons [Mon, 26 Jul 2010 22:35:59 +0000 (22:35 +0000)]
`Ad' is supposed to underline.  Found whilst trolling through manuals.

14 years agoMake `Sm' start no-spacing after the first output word. Fix in both
Kristaps Dzonsons [Mon, 26 Jul 2010 22:26:05 +0000 (22:26 +0000)]
Make `Sm' start no-spacing after the first output word.  Fix in both
-T[x]html and -T{pdf,ps,ascii}.  Reported by Jason McIntyre.

14 years agoClean up some tight spots in mandoc's default mode: pessimistically
Kristaps Dzonsons [Mon, 26 Jul 2010 21:58:41 +0000 (21:58 +0000)]
Clean up some tight spots in mandoc's default mode: pessimistically
pre-allocate the output buffer for words and in-line the buffera()
function, which was only called in one place anyway.

14 years agoRemove asciisz from chars.in. It frees up a nice chunk of memory and at
Kristaps Dzonsons [Mon, 26 Jul 2010 13:59:00 +0000 (13:59 +0000)]
Remove asciisz from chars.in.  It frees up a nice chunk of memory and at
the overhead of running strlen() for ASCII strings (yes, I benchmarked
this running mandoc_char(7) as input again and again with
hundredth-second penalties... on my slow-ass alpha).

14 years agoNote that `Dd' can be empty. This found following a thread on discuss@
Kristaps Dzonsons [Mon, 26 Jul 2010 13:45:49 +0000 (13:45 +0000)]
Note that `Dd' can be empty.  This found following a thread on discuss@
started by Sascha Wildner, 07/25/2010 06:30 AM.

14 years agoMerge schwarze@'s pass over mdoc.7. Fixed small new-sentence-new-line
Kristaps Dzonsons [Mon, 26 Jul 2010 12:51:56 +0000 (12:51 +0000)]
Merge schwarze@'s pass over mdoc.7.  Fixed small new-sentence-new-line
nit noted by Jason McIntyre.

"your diff looks ok" (Jason McIntyre)

14 years agoFix chars.in fall-through to ASCII mode. This bug only affected
Kristaps Dzonsons [Mon, 26 Jul 2010 10:20:06 +0000 (10:20 +0000)]
Fix chars.in fall-through to ASCII mode.  This bug only affected
-T[x]html.

14 years agoNote -Tpdf in www.
Kristaps Dzonsons [Mon, 26 Jul 2010 10:00:15 +0000 (10:00 +0000)]
Note -Tpdf in www.

14 years agoMerge Jason McIntyre's corrections to man.7.
Kristaps Dzonsons [Mon, 26 Jul 2010 10:00:03 +0000 (10:00 +0000)]
Merge Jason McIntyre's corrections to man.7.

"urgle": Jason McIntyre.  "This is all ok" schwarze@.

14 years agoAvoid running the "width" termp callback for each whitespace.
Kristaps Dzonsons [Sun, 25 Jul 2010 22:56:47 +0000 (22:56 +0000)]
Avoid running the "width" termp callback for each whitespace.

14 years agoFully-working -Tpdf: xref table is now generated. This works for both
Kristaps Dzonsons [Sun, 25 Jul 2010 22:15:07 +0000 (22:15 +0000)]
Fully-working -Tpdf: xref table is now generated.  This works for both
single and multiple-manual mode (e.g., mandoc -Tpdf foo.1 bar.1).

14 years agoMake PDF sections contiguous.
Kristaps Dzonsons [Sun, 25 Jul 2010 19:37:38 +0000 (19:37 +0000)]
Make PDF sections contiguous.

14 years agoEnsure that isalnum is called with unsigned char argument.
Joerg Sonnenberger [Sun, 25 Jul 2010 19:05:59 +0000 (19:05 +0000)]
Ensure that isalnum is called with unsigned char argument.

14 years agolist two additional issues
Ingo Schwarze [Sun, 25 Jul 2010 18:22:18 +0000 (18:22 +0000)]
list two additional issues

14 years agoInitial PDF shim over PS. This produces working PDF output with -Tpdf.
Kristaps Dzonsons [Sun, 25 Jul 2010 11:44:31 +0000 (11:44 +0000)]
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!).

14 years agoCollapse `nf', `fi', `Vb', and `Ve' into one function as in man_html.c. VERSION_1_10_5_PREPDF
Kristaps Dzonsons [Fri, 23 Jul 2010 13:22:35 +0000 (13:22 +0000)]
Collapse `nf', `fi', `Vb', and `Ve' into one function as in man_html.c.