aboutsummaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
* Merge from OpenBSD right after 1.10.6; now back to full sync.Ingo Schwarze2010-09-274-14/+10
| | | | | | | | | | * mdoc.c: blank lines outside literal mode are more similar to .sp than .Pp * backslashes do not terminate macros; partial revert of mdoc.c 1.164; the intention of that commit is fully achieved in roff.c * mdoc_term.c: no need to list the same prototype twice * mdoc_validate.c: drop .Pp before .sp just like .Pp before .Pp * fix off-by-one found by jsg@ with parfait, OpenBSD term_ps.c 1.12 ok kristaps@
* Added TODO for more `Pp' warnings.Kristaps Dzonsons2010-09-271-1/+5
|
* A minor issue with \& between .Pp found while merging 1.10.6.Ingo Schwarze2010-09-271-1/+5
|
* Prepping for version.VERSION_1_10_6Kristaps Dzonsons2010-09-272-3/+18
|
* Consider both `Lp' and `Pp' when stripping prior paragraph marks.Kristaps Dzonsons2010-09-271-2/+7
|
* Suppress whitespace following Pp, Lp, sp, and the other newline-emittingKristaps Dzonsons2010-09-274-8/+46
| | | | macros within an unfilled or literal `Bd'.
* Remove finished TODO.Kristaps Dzonsons2010-09-271-3/+1
|
* Ignore double-`Pp' and `Pp' before `Bd' and `Bl' (unless -compact isKristaps Dzonsons2010-09-274-11/+29
| | | | specified).
* Added MIPS64. From a patch by Jason McIntyre.Kristaps Dzonsons2010-09-272-3/+5
|
* sync to OpenBSD:Ingo Schwarze2010-09-261-4/+4
| | | | | new sentence, new line; from jmc@
* If an explicit scope is still open at the end of an input file,Ingo Schwarze2010-09-263-15/+9
| | | | | | | | | | 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-7/+12
| | | | | | 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-214/+143
|
* Linted function arguments.Kristaps Dzonsons2010-09-261-1/+3
|
* Big clean-up consolidating all punctuation opening/closing functions intoKristaps Dzonsons2010-09-261-226/+118
| | | | | | | | | 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-5/+2
|
* A `%T' invoked outside of `Rs' should not produce trailing punctuation.Kristaps Dzonsons2010-09-253-9/+9
| | | | | 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-12/+11
| | | | | | 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-5/+1
|
* When the HEAD of an .Nm block in the SYNOPSIS might be widerIngo Schwarze2010-09-231-7/+13
| | | | | | | | | | | 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-3/+5
| | | | | 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-1/+4
|
* Allow string lengths to account for escapes. Now all calls to calculateKristaps Dzonsons2010-09-153-14/+49
| | | | | | | | | | | | | | | | | | | | | 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-24/+6
| | | | | | 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-2/+2
| | | | Same fix as the previous one.
* Prevent `Pp' from looping endlessly on punctuation. Bug reported byKristaps Dzonsons2010-09-131-2/+2
| | | | Marc Espie.
* Found nit in -T[x]html.Kristaps Dzonsons2010-09-081-1/+3
|
* 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@.