summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove the terminal frontend flag TERMP_NOLPAD.Ingo Schwarze2011-09-194-69/+54
| | | | | | | | | | | | | | | | | In columnated contexts (.Bl -column, .Bl -tag, .IP, .TP, .HP etc.), do not pad after writing a column. Instead, always pad before writing content. In itself, this change avoids: - writing trailing whitespace in some situations - with .fi/.nf in .HP, breaking lines that were already padded It allows several bugfixes included in this patch: - Do not count backspace as a character with positive width. - Set up proper indentation when encountering .fi/.nf in .HP. - Adjust the .HP indentation width to what groff does. - Never unlimit the right margin unless in the final column. ok kristaps@
* Breaking the line at a hyphen is only allowed if the hyphenIngo Schwarze2011-09-191-9/+2
| | | | | is both preceded and followed by an alphabetic character. ok kristaps@
* Fix another regression introduced in 1.11.7:Ingo Schwarze2011-09-181-2/+13
| | | | | | | | | | | | | | | | | If a string is defined in terms of itself, the REPARSE_LIMIT in read.c used to break the cycle. This no longer works since all the work is now done in the function roff_res(), looping indefinitely. Make this loop finite by arbitrarily limiting the number of times one string may be expanded; when that limit is reached, leave the remaining string references unexpanded. This changes behaviour compared to 1.11.5, where the whole line would have been dropped. The new behaviour is better because it loses less information. We don't want to imitate groff-1.20.1 behaviour anyway because groff aborts parsing of the whole file. ok kristaps@
* fix a regression introduced in 1.11.7:Ingo Schwarze2011-09-181-1/+4
| | | | | even a breakable hyphen may be bold or underlined ok kristaps@
* Support nesting of indented blocks.Ingo Schwarze2011-09-181-34/+28
| | | | | | | | This patch was originally written in July 2011 by kristaps@, i promptly committed it to OpenBSD, and then it was forgotten. Now i rediscovered it when merging 1.11.7 to OpenBSD. ok kristaps@ (on his own patch :)
* two issues were reported againIngo Schwarze2011-09-181-0/+5
|
* forgotten Copyright bumps; no code changeIngo Schwarze2011-09-1820-20/+20
| | | | found while syncing to OpenBSD
* Add a MACRO OVERVIEW, listing all macros ordered by purpose,Ingo Schwarze2011-09-181-0/+124
| | | | | | | each with a one-line discription. Use this when wondering which macro fits best for your particular use case, and whether there are alternatives. feedback ond ok jmc@, ok kristaps@
* Initial, incomplete support for -TmanIngo Schwarze2011-09-175-0/+456
| | | | | | | | to convert mdoc(7) documents to the man(7) language. This is work in progress and will be developed in tree. It does already handle the cat(1) manual, but will hardly handle all your fancy manuals yet. go ahead kristaps@ jmc@ millert@ deraadt@
* fix an obvious typo: sz was used uninitializedIngo Schwarze2011-09-171-1/+1
| | | | found while merging to OpenBSD
* support ".St -iso8601"; committing on behalf of jmc@Ingo Schwarze2011-09-162-0/+3
|
* It's unknown whether `SH' and `SS' closing out `nf' literalism isKristaps Dzonsons2011-09-061-0/+8
| | | | portable, so document it in COMPATIBILITY.
* Revert removal of tab warning, suggested by schwarze@.Kristaps Dzonsons2011-09-061-2/+17
|
* Remove check for tab. man(7) says tab is Ok.Kristaps Dzonsons2011-09-041-17/+2
|
* Teach -man that a literal context should be closed by SS/SH in theKristaps Dzonsons2011-09-041-9/+19
| | | | | backend (the front-end already accomodated for this). Found indirectly from a question by Brad Smith.
* Fix handling of font modifiers in tables. Noted by Brad Smith.Kristaps Dzonsons2011-09-032-3/+22
|
* Make -man check for tabs correctly print the column.VERSION.1.11.7Kristaps Dzonsons2011-09-021-1/+1
|
* Fix typos and spelling errors found by demandoc -w | spell -b.Kristaps Dzonsons2011-09-024-8/+8
|
* Fix hypermail link.Kristaps Dzonsons2011-09-021-3/+3
|
* Adding version notes.Kristaps Dzonsons2011-09-023-8/+8
|
* Finishing touches on demandoc. It now backs over ending punctuation asKristaps Dzonsons2011-09-012-5/+27
| | | | | | well as leading punctuation. Again, this isn't the same as deroff (which uses, I think, some punctuation as delimiters), but it's easier to explain and simpler to audit.
* Make `-w' mode work much better. This is INCREDIBLY poorly specified inKristaps Dzonsons2011-09-012-5/+62
| | | | | | any other deroff manual, and as I don't think anybody actually uses deroff, I don't feel compelled to research its behaviour too much and can just do what's logical.
* Have demandoc throw away deroff's flags.Kristaps Dzonsons2011-09-012-31/+68
|
* Lint checks over demandoc.Kristaps Dzonsons2011-09-011-3/+2
|
* Allow compilation on OpenBSD.Kristaps Dzonsons2011-09-011-0/+1
|
* Add demandoc utility, a replacement for deroff.Kristaps Dzonsons2011-09-014-22/+305
|
* Order -column lists to have the arguments follow `-column'. From aKristaps Dzonsons2011-08-303-22/+22
| | | | patch by Jason McIntyre.
* Remove unnecessary `Pp'/`-compat' combination for column lists.Kristaps Dzonsons2011-08-303-18/+9
| | | | Directly from a patch by Jason McIntyre.
* Make sure that `Ql' literalises its arguments in -T[x]html. Found whenKristaps Dzonsons2011-08-263-3/+7
| | | | doing manpages.bsd.lv stuff.
* Avoid incorrect casting by using an implicit cast. Reported by ThomasKristaps Dzonsons2011-08-191-2/+2
| | | | Klausner.
* Bring man.7's LANGUAGE SYNTAX in line with mdoc.7. While here, changeKristaps Dzonsons2011-08-192-61/+77
| | | | out the \*q escapes. Also fix some spelling typos in both manuals.
* Make LANGUAGE SYNTAX examples a bit more explanatory.Kristaps Dzonsons2011-08-191-13/+19
|
* First, use \(dq instead of \*q for double-quote. Second, use `Li' toKristaps Dzonsons2011-08-191-72/+65
| | | | | | | note literal text in "Examples:" parts. Finally, move parts of Quotation related to keeping whitespace into Whitespace and clean up the text to be a bit clearer. Examples can be added back in at will, but now it follows the general layout of explanation followed by examples.
* Align `-offset indent' and `D1' by forcing BLOCKQUOTE to have a 5exKristaps Dzonsons2011-08-184-8/+4
| | | | | | | | | margin. This is dubious: the HTML4 spec specifically says that BLOCKQUOTE shouldn't be abused for indentation, which is exactly what we do. However, `D1' needs indentation and it's the only way to force text browsers to do so. Alternatives? Also remove the unused HALFINDENT defines while here.
* Slightly tweak www section/subsections.Kristaps Dzonsons2011-08-182-8/+13
|
* Have `Li' be correctly monospaced in -T[x]html. Also make sure thatKristaps Dzonsons2011-08-183-4/+4
| | | | | `Li' prints as a CODE tag and the style-sheet has the `lit' class apply to multiple tag types.
* Replace the old `An'/`Aq' AUTHORS note with `An'/`Mt'.Kristaps Dzonsons2011-08-1810-13/+24
|
* Add example of comments in man.7 and mdoc.7.Kristaps Dzonsons2011-08-172-2/+18
|
* Sync man.7's LANGUAGE SYNTAX (was INPUT ENCODING) with mdoc.7.Kristaps Dzonsons2011-08-171-47/+119
| | | | | While here, fix the scaling widths example that incorrectly used `br' (it now correctly uses `sp').
* Clean up and normalise the LANGUAGE SYNTAX section in mdoc.7:Kristaps Dzonsons2011-08-171-59/+91
| | | | | | | | - make examples trail each section - make explanations more concise - remove references to troff ok Jason McIntyre.
* Toyed with www site a bit. For the next release.Kristaps Dzonsons2011-08-171-92/+28
|
* Replace the .Fl examples by others exhibiting the same features,VERSION.1.11.6Ingo Schwarze2011-08-161-5/+5
| | | | | | but avoiding use of .Nm, because letting .Nm call other macros is unusual style, and we don't want unusual style in examples. Issue brought up by kristaps@.
* More information about lots of macros, many new examples, and various fixes.Ingo Schwarze2011-08-161-51/+165
| | | | ok kristaps@
* Added generation of Universal binary. Fixed up index.sgml to be shorterKristaps Dzonsons2011-08-162-59/+76
| | | | and more expressive.
* Version: 1.11.6.Kristaps Dzonsons2011-08-161-2/+2
|
* Lint check.Kristaps Dzonsons2011-08-161-7/+0
|
* Fixed mingw compatibility where the "z" printf() modifier isn'tKristaps Dzonsons2011-08-162-6/+7
| | | | | recognised. It's easier to make these u_int than to jump through hoops for a special formatter.
* Updating mingw32 install hooks for new mingw version.Kristaps Dzonsons2011-08-161-2/+13
|
* Initial version bits in place. Also added forgotten tests to installed files.Kristaps Dzonsons2011-08-162-39/+23
|
* Allow `Sx' and `Ss' to have child nodes. Fixes manuals in NetBSD.Kristaps Dzonsons2011-08-104-52/+75
| | | | | | Originally pointed out by joerg@ then again by Thomas Klausner by way of Nicolas Joy. Note: don't use these constructions as you can't link to the sections with `Sx'.