summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Made -mdoc `Pp', `Lp', and `br' not FATAL when having arguments.Kristaps Dzonsons2010-08-291-3/+3
|
* Move mdoc/man template "The next is for" into the section itself. AddedKristaps Dzonsons2010-08-283-18/+24
| | | | OpenBSD compatibility notes. Based on a patch by Jason McIntyre.
* "sys/param.h is for kernel interface programs.Kristaps Dzonsons2010-08-261-1/+1
| | | | | | sys/types.h is the file you want to include." From a downstream fix by deraadt@.
* Fixed HISTORY to note mdoc's rewrite in groff-1.17, not groff-1.20.Kristaps Dzonsons2010-08-241-1/+1
|
* Handle nested, recursive mathematical subexpressions. This isKristaps Dzonsons2010-08-242-1/+44
| | | | | definitely not general, but it's good enough for pod2man definitions (after I clean up the roff, which will be addressed in later fixes).
* Strip out `\k' escape.Kristaps Dzonsons2010-08-244-1/+7
|
* Stripping out of `\w' groff escape. Yet another for pod2man...Kristaps Dzonsons2010-08-244-6/+18
|
* Have the `ds' processor strip out `\\' as stipulated in groff.7. I onlyKristaps Dzonsons2010-08-241-2/+25
| | | | care because pod2man uses this construct.
* Strip out the `\z' escape. This is the first recursive sequence,Kristaps Dzonsons2010-08-244-1/+21
| | | | getting mandoc ready to handle pod2man's complex escapes.
* Add a short HISTORY section to mdoc.7. Facts provided by schwarze@'sKristaps Dzonsons2010-08-221-0/+11
| | | | detective-work in the UNIX archives.
* Sort COMPATIBILITY in mdoc(7) (from schwarze@).Kristaps Dzonsons2010-08-222-120/+128
| | | | Update escape COMPATIBILITY in mdoc(7) and man(7) (ok schwarze@).
* Backout previous.Ingo Schwarze2010-08-211-13/+0
| | | | | | | | | | | | | | | 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.
* Centralize handling of literal tabs in term_flushln() in one place,Ingo Schwarze2010-08-201-10/+3
| | | | | making the code simpler and easier to understand. No functional change.
* When a column contains trailing spaces, calculate the paddingIngo Schwarze2010-08-201-0/+6
| | | | | to the start of the next column correctly. Fixing a problem found by jmc@ in sysctl(3), reminded by kettenis@.
* .Bl -column phrases ignore spacing rules for trailing punctuationIngo Schwarze2010-08-202-0/+20
| | | | | and render it just like normal text. Minimal fix of a formatting bug in operator(7) reported by ray@.
* fix previous: when bailing out due to -Wstop,Ingo Schwarze2010-08-201-8/+8
| | | | | skip output functions, but not *_endparse; problem reported by kristaps@
* Fixed Makefile auto-generation of manuals not to use -fstrict and [old] -Werror.Kristaps Dzonsons2010-08-201-4/+4
|
* Implement a simple, consistent user interface for error handling.Ingo Schwarze2010-08-2022-421/+334
| | | | | | | | | | | | | | | | | 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.
* Updated hypermail link to summary.html.Kristaps Dzonsons2010-08-191-3/+3
|
* Added mail archive periodically generated by hypermail.Kristaps Dzonsons2010-08-181-5/+13
|
* Migrate `Xr groff 1' -> GNU troff. I no longer assume that groff isKristaps Dzonsons2010-08-181-5/+2
| | | | installed on the host system.
* Remove references to \s in mandoc.1: we no longer document these and justKristaps Dzonsons2010-08-181-11/+0
| | | | flat-out ignore them.
* Add joerg@'s note that br\} needs work in libroff.Kristaps Dzonsons2010-08-181-0/+3
|
* Remove \*(C+ from the pre-predefined strings. It is always `ds'-definedKristaps Dzonsons2010-08-164-3/+5
| | | | | | 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.
* Add \v and \h to ignored escapes. These are in the category of \s.Kristaps Dzonsons2010-08-162-16/+21
| | | | | | 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.
* OpenBSD src/sbin was used as a tool to hunt bugs in mandoc.Ingo Schwarze2010-08-151-1/+35
|
* OpenBSD src/bin was used as a tool to hunt bugs in mandoc.Ingo Schwarze2010-08-151-1/+40
|
* Note first that TODO file should be up to date.Kristaps Dzonsons2010-08-141-2/+3
| | | | Note also that the PDF file should be reduced in case I somehow forget.
* Correctly make quotes around `Lk' link-name argument. Noted by AldisKristaps Dzonsons2010-08-091-2/+6
| | | | Berzoja. Also note COMPATIBILITY of groff misformatting `Lk'.
* Correctly print `Lk' arguments in -Tascii. Issue raised by Aldis Berzoja.Kristaps Dzonsons2010-08-091-5/+7
| | | | Behaviour ok'd by schwarze@.
* simplify the code copying the macro name, and sync theIngo Schwarze2010-08-082-15/+12
| | | | | accompagnying comment between man_pmacro() and mdoc_pmacro(); ok'd by kristaps@ together with main.c rev. 1.102
* Make sure we really throw away non-ASCII characters.Ingo Schwarze2010-08-081-2/+3
| | | | | | For example, on OpenBSD without locale settings, isgraph(3) returns true for some eight-bit characters. ok kristaps@
* Clean out the isgraph() checks in mdoc.c and man.c. These code pathsKristaps Dzonsons2010-08-072-23/+2
| | | | | were never taken since main.c begin skipping over unrecognisable characters, so they were noops.
* "Groff allows the initial macro on a line to be delimited by a space ofKristaps Dzonsons2010-08-071-6/+15
| | | | | by a tab; so allow the tab in mandoc, too." Original problem noted by schwarze@. Sync with OpenBSD.
* Add TODO noted by Alex Kozlov.Kristaps Dzonsons2010-08-071-0/+3
|
* Remove mandoc.1 compatibility notes that are no longer relevant.Kristaps Dzonsons2010-08-071-10/+0
|
* same as mdoc_term.c rev. 1.180:Ingo Schwarze2010-08-071-4/+4
| | | | | preserve blank lines at the end of .Bd -literal patch from kristaps@, who asked me to commit this
* merge from OpenBSD mdoc_term.c rev. 1.100:Ingo Schwarze2010-08-071-2/+4
| | | | | | preserve blank lines in .Bd -literal, both in the middle and at the end of the display ok kristaps@
* Removed cross-reference to groff(1) in favour of simply mentioning GNUKristaps Dzonsons2010-08-071-1/+1
| | | | troff. This removes the last groff(1) `Xr'.
* Added serial comma.Kristaps Dzonsons2010-08-071-5/+5
| | | | Put "remarks" for `%C' into COMPATIBILITY.
* `In' comes before `Vt' in function example of SYNOPSIS.Kristaps Dzonsons2010-08-071-1/+1
|
* Clarify that predefined strings aren't groff-isms, they're troff-isms.Kristaps Dzonsons2010-08-071-1/+1
|
* tweaks from jmc@:Ingo Schwarze2010-08-061-36/+41
| | | | | | | * 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.
* merge from OpenBSD:Ingo Schwarze2010-08-062-9/+5
| | | | | | - 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
* IMPORTANT FIX: add missing braces around alloc failure conditional inKristaps Dzonsons2010-08-061-3/+7
| | | | | fuction-isation of PS_GROWBUF. Obviously the original commit was never actually tested, as -Tps and -Tpdf errored out immediately.
* Turn the non-trivial PS_GROWBUF macro into a function. Don't use MAX, itJoerg Sonnenberger2010-08-011-15/+18
| | | | doesn't exist in the default namespace on Solaris.
* Sync to OpenBSD: add missing Copyright years.Ingo Schwarze2010-07-3111-11/+11
| | | | | I checked that substantial changes were committed to these files during these years.
* Don't crash for the following test case as reported by Jordan Gordeev:Joerg Sonnenberger2010-07-301-0/+7
| | | | | | | .Bl -tag .It foo ...
* Use 0 for MAP_FILE if it doesn't exist. From Hans Rosenfeld.Joerg Sonnenberger2010-07-291-0/+4
|
* Add PDF files to www. We also show text and ps, just to show off.VERSION.1.10.5Kristaps Dzonsons2010-07-272-22/+39
|