aboutsummaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
* Churny commit to quiet lint. No functional changes.Kristaps Dzonsons2010-09-049-31/+32
|
* Properly handle -mdoc %A in all outputs. This has two-author entiresKristaps Dzonsons2010-09-046-10/+85
| | | | | | | separated by only "and" while two or more are with ", and" for the last author. Also remove relevant TODO and add regression tests.
* Removed 'br\} comment from TODO. This was fixed a few weeks ago.Kristaps Dzonsons2010-09-041-4/+1
|
* Fix premature return from sub-conditional roff statements. This fixKristaps Dzonsons2010-09-041-6/+4
| | | | fully accomodates for the pod2man standard preamble!
* Clarified EXIT STATUS sections. Discussed among schwarze@, Thomas, andKristaps Dzonsons2010-09-043-7/+7
| | | | Jason. Patch by Jason.
* Remove the pod2man table entries. They can now be properly read andKristaps Dzonsons2010-08-292-12/+5
| | | | assigned within the pod2man preamble.
* Allow `.xx\}' where xx is a macro (e.g., `.br\}') to close scope. This isKristaps Dzonsons2010-08-292-6/+16
| | | | | | 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.
* Remove overstrike `\o'. This isn't the best solution because we reallyKristaps Dzonsons2010-08-294-8/+14
| | | | | should be printing the contents, but for the time being, this is good enough.
* Made -mdoc `Pp', `Lp', and `br' not FATAL when having arguments.Kristaps Dzonsons2010-08-291-4/+4
|
* Move mdoc/man template "The next is for" into the section itself. AddedKristaps Dzonsons2010-08-283-22/+28
| | | | OpenBSD compatibility notes. Based on a patch by Jason McIntyre.
* "sys/param.h is for kernel interface programs.Kristaps Dzonsons2010-08-261-2/+2
| | | | | | 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-2/+2
|
* Handle nested, recursive mathematical subexpressions. This isKristaps Dzonsons2010-08-242-3/+46
| | | | | 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-5/+11
|
* Stripping out of `\w' groff escape. Yet another for pod2man...Kristaps Dzonsons2010-08-244-10/+22
|
* Have the `ds' processor strip out `\\' as stipulated in groff.7. I onlyKristaps Dzonsons2010-08-241-3/+26
| | | | care because pod2man uses this construct.
* Strip out the `\z' escape. This is the first recursive sequence,Kristaps Dzonsons2010-08-244-7/+27
| | | | 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-1/+12
| | | | detective-work in the UNIX archives.
* Sort COMPATIBILITY in mdoc(7) (from schwarze@).Kristaps Dzonsons2010-08-222-124/+132
| | | | Update escape COMPATIBILITY in mdoc(7) and man(7) (ok schwarze@).
* Backout previous.Ingo Schwarze2010-08-211-14/+1
| | | | | | | | | | | | | | | 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-11/+4
| | | | | making the code simpler and easier to understand. No functional change.
* When a column contains trailing spaces, calculate the paddingIngo Schwarze2010-08-201-1/+7
| | | | | 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-2/+22
| | | | | 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-9/+9
| | | | | 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-447/+360
| | | | | | | | | | | | | | | | | 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-4/+4
|
* Added mail archive periodically generated by hypermail.Kristaps Dzonsons2010-08-181-6/+14
|
* Migrate `Xr groff 1' -> GNU troff. I no longer assume that groff isKristaps Dzonsons2010-08-181-6/+3
| | | | installed on the host system.
* Remove references to \s in mandoc.1: we no longer document these and justKristaps Dzonsons2010-08-181-13/+2
| | | | flat-out ignore them.
* Add joerg@'s note that br\} needs work in libroff.Kristaps Dzonsons2010-08-181-1/+4
|
* Remove \*(C+ from the pre-predefined strings. It is always `ds'-definedKristaps Dzonsons2010-08-164-8/+10
| | | | | | 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-18/+23
| | | | | | 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-2/+36
|
* OpenBSD src/bin was used as a tool to hunt bugs in mandoc.Ingo Schwarze2010-08-151-2/+41
|
* Note first that TODO file should be up to date.Kristaps Dzonsons2010-08-141-3/+4
| | | | 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-4/+8
| | | | Berzoja. Also note COMPATIBILITY of groff misformatting `Lk'.
* Correctly print `Lk' arguments in -Tascii. Issue raised by Aldis Berzoja.Kristaps Dzonsons2010-08-091-6/+8
| | | | Behaviour ok'd by schwarze@.
* simplify the code copying the macro name, and sync theIngo Schwarze2010-08-082-17/+14
| | | | | 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-3/+4
| | | | | | 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-25/+4
| | | | | 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-7/+16
| | | | | 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-1/+4
|
* Remove mandoc.1 compatibility notes that are no longer relevant.Kristaps Dzonsons2010-08-071-12/+2
|
* same as mdoc_term.c rev. 1.180:Ingo Schwarze2010-08-071-5/+5
| | | | | 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-3/+5
| | | | | | 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-2/+2
| | | | troff. This removes the last groff(1) `Xr'.
* Added serial comma.Kristaps Dzonsons2010-08-071-6/+6
| | | | Put "remarks" for `%C' into COMPATIBILITY.
* `In' comes before `Vt' in function example of SYNOPSIS.Kristaps Dzonsons2010-08-071-2/+2
|
* Clarify that predefined strings aren't groff-isms, they're troff-isms.Kristaps Dzonsons2010-08-071-3/+3
|