summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Consider both `Lp' and `Pp' when stripping prior paragraph marks.Kristaps Dzonsons2010-09-271-1/+6
|
* Suppress whitespace following Pp, Lp, sp, and the other newline-emittingKristaps Dzonsons2010-09-274-4/+42
| | | | macros within an unfilled or literal `Bd'.
* Remove finished TODO.Kristaps Dzonsons2010-09-271-2/+0
|
* Ignore double-`Pp' and `Pp' before `Bd' and `Bl' (unless -compact isKristaps Dzonsons2010-09-274-7/+25
| | | | specified).
* Added MIPS64. From a patch by Jason McIntyre.Kristaps Dzonsons2010-09-272-0/+2
|
* sync to OpenBSD:Ingo Schwarze2010-09-261-2/+2
| | | | | new sentence, new line; from jmc@
* If an explicit scope is still open at the end of an input file,Ingo Schwarze2010-09-263-12/+6
| | | | | | | | | | 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@
* sync to OpenBSD:Ingo Schwarze2010-09-262-3/+8
| | | | | | 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)
* Consolidated all -T[x]html punctuation macros into one function.Kristaps Dzonsons2010-09-261-213/+142
|
* Linted function arguments.Kristaps Dzonsons2010-09-261-0/+2
|
* Big clean-up consolidating all punctuation opening/closing functions intoKristaps Dzonsons2010-09-261-225/+117
| | | | | | | | | 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.
* Remove fixed TODO and add a new one.Kristaps Dzonsons2010-09-251-4/+1
|
* A `%T' invoked outside of `Rs' should not produce trailing punctuation.Kristaps Dzonsons2010-09-253-6/+6
| | | | | This from a TODO entry. Also stripped the superfluous NOSPACE, which is handled in term_word() or print_text() anyway.
* Add `Rs' vertical-space in -T[x]html "SEE ALSO" section. RemoveKristaps Dzonsons2010-09-253-9/+8
| | | | | | corresponding TODO entry. Also have the "." after an `Rs' block trigger inter-sentence spacing.
* Removed TODO that was fixed by parsing escapes in offset strings.Kristaps Dzonsons2010-09-251-4/+0
|
* When the HEAD of an .Nm block in the SYNOPSIS might be widerIngo Schwarze2010-09-231-6/+12
| | | | | | | | | | | 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@
* Count trailing escaped blanks correctly;Ingo Schwarze2010-09-231-2/+4
| | | | | those ruined the alignment of columns. Tested by jmc@, and kristaps@ agrees with the direction.
* enclosures sometimes cause bogus end-of-sentenceIngo Schwarze2010-09-231-0/+3
|
* Allow string lengths to account for escapes. Now all calls to calculateKristaps Dzonsons2010-09-153-11/+46
| | | | | | | | | | | | | | | | | | | | | 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.
* Remove last pod2man escapes. These render ok, although \*(-- renders asKristaps Dzonsons2010-09-153-21/+3
| | | | | | 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.
* 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
|