summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Prevent .Lp from looping endlessly on punctuation.Ingo Schwarze2010-09-131-1/+1
| | | | Same fix as the previous one.
* Prevent `Pp' from looping endlessly on punctuation. Bug reported byKristaps Dzonsons2010-09-131-1/+1
| | | | Marc Espie.
* Found nit in -T[x]html.Kristaps Dzonsons2010-09-081-0/+2
|
* Churny commit to quiet lint. No functional changes.Kristaps Dzonsons2010-09-049-22/+23
|
* Properly handle -mdoc %A in all outputs. This has two-author entiresKristaps Dzonsons2010-09-046-7/+82
| | | | | | | 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-3/+0
|
* Fix premature return from sub-conditional roff statements. This fixKristaps Dzonsons2010-09-041-5/+3
| | | | fully accomodates for the pod2man standard preamble!
* Clarified EXIT STATUS sections. Discussed among schwarze@, Thomas, andKristaps Dzonsons2010-09-043-3/+3
| | | | Jason. Patch by Jason.
* Remove the pod2man table entries. They can now be properly read andKristaps Dzonsons2010-08-292-10/+3
| | | | assigned within the pod2man preamble.
* Allow `.xx\}' where xx is a macro (e.g., `.br\}') to close scope. This isKristaps Dzonsons2010-08-292-4/+14
| | | | | | 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-2/+8
| | | | | 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-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'.