aboutsummaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
* typos found by jmc@Ingo Schwarze2011-09-251-5/+6
|
* As noticed by kristaps@, when breaking an overflowing line,Ingo Schwarze2011-09-212-11/+7
| | | | | | | forget about pending whitespace (vbl), or the next line would be misaligned and potentially too long; but i'm fixing this in a simpler way than he proposed. Also remove the kludges in .HP that compensated for this bug.
* sync to groff: support .Lb -libdwarf, update .Lb -libelfIngo Schwarze2011-09-201-2/+3
| | | | after Werner Lemberg committed a patch by Joseph Koshy
* Major rewrite of the horizontal spacing of tablesIngo Schwarze2011-09-202-138/+112
| | | | | to work both with and without frames and rulers. ok kristaps@
* add a MACRO OVERVIEW section, similar to the one in mdoc(7);Ingo Schwarze2011-09-201-2/+41
| | | | writing this for man(7), too, was suggested by kristaps@
* Using user-defined macros, surprisingly, it is possibleIngo Schwarze2011-09-202-3/+7
| | | | | | | to have *next*-line head arguments on the *same* input line. So .TP must not assume that a head argument with a matching input line number is a same-line argument (and access a NULL pointer). Bug found and fix tested by kristaps@ with groff_hdtbl(7).
* do not assign pointers to literal stringsIngo Schwarze2011-09-201-3/+3
| | | | | to variables that might be changed; from kristaps@
* When advancing the left margin, .RS also needs to reset the right marginIngo Schwarze2011-09-201-2/+3
| | | | | | to the default and check that the left does not outgrow the right one. Otherwise, the (rmargin >= offset) assertion fails in term_flushln(). Bug found and fix tested by kristaps@ with NetBSD slapo-retcode(5).
* Sync print_mdoc_head to print_man_head;Ingo Schwarze2011-09-202-21/+28
| | | | | | this was forgotten after man_term.c rev. 1.25 on March 2, 2010. The benefit is a sane page header line when .Dt is very long. Reminded by Thomas Klausner <wiz at NetBSD>, thanks.
* Remove the terminal frontend flag TERMP_NOLPAD.Ingo Schwarze2011-09-194-73/+58
| | | | | | | | | | | | | | | | | 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-10/+3
| | | | | is both preceded and followed by an alphabetic character. ok kristaps@
* Fix another regression introduced in 1.11.7:Ingo Schwarze2011-09-181-3/+14
| | | | | | | | | | | | | | | | | 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-2/+5
| | | | | even a breakable hyphen may be bold or underlined ok kristaps@
* Support nesting of indented blocks.Ingo Schwarze2011-09-181-35/+29
| | | | | | | | 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-1/+6
|
* forgotten Copyright bumps; no code changeIngo Schwarze2011-09-1820-41/+41
| | | | found while syncing to OpenBSD
* Add a MACRO OVERVIEW, listing all macros ordered by purpose,Ingo Schwarze2011-09-181-2/+126
| | | | | | | 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-4/+460
| | | | | | | | 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-2/+2
| | | | found while merging to OpenBSD
* support ".St -iso8601"; committing on behalf of jmc@Ingo Schwarze2011-09-162-3/+6
|
* It's unknown whether `SH' and `SS' closing out `nf' literalism isKristaps Dzonsons2011-09-061-2/+10
| | | | portable, so document it in COMPATIBILITY.
* Revert removal of tab warning, suggested by schwarze@.Kristaps Dzonsons2011-09-061-3/+18
|
* Remove check for tab. man(7) says tab is Ok.Kristaps Dzonsons2011-09-041-18/+3
|
* Teach -man that a literal context should be closed by SS/SH in theKristaps Dzonsons2011-09-041-10/+20
| | | | | 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-6/+25
|
* Make -man check for tabs correctly print the column.VERSION_1_11_7Kristaps Dzonsons2011-09-021-2/+2
|
* Fix typos and spelling errors found by demandoc -w | spell -b.Kristaps Dzonsons2011-09-024-16/+16
|
* Fix hypermail link.Kristaps Dzonsons2011-09-021-4/+4
|
* Adding version notes.Kristaps Dzonsons2011-09-023-11/+11
|
* Finishing touches on demandoc. It now backs over ending punctuation asKristaps Dzonsons2011-09-012-7/+29
| | | | | | 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-7/+64
| | | | | | 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-33/+70
|
* Lint checks over demandoc.Kristaps Dzonsons2011-09-011-4/+3
|
* Allow compilation on OpenBSD.Kristaps Dzonsons2011-09-011-1/+2
|
* Add demandoc utility, a replacement for deroff.Kristaps Dzonsons2011-09-014-23/+306
|
* Order -column lists to have the arguments follow `-column'. From aKristaps Dzonsons2011-08-303-25/+25
| | | | patch by Jason McIntyre.
* Remove unnecessary `Pp'/`-compat' combination for column lists.Kristaps Dzonsons2011-08-303-24/+15
| | | | Directly from a patch by Jason McIntyre.
* Make sure that `Ql' literalises its arguments in -T[x]html. Found whenKristaps Dzonsons2011-08-263-6/+10
| | | | doing manpages.bsd.lv stuff.
* Avoid incorrect casting by using an implicit cast. Reported by ThomasKristaps Dzonsons2011-08-191-3/+3
| | | | Klausner.
* Bring man.7's LANGUAGE SYNTAX in line with mdoc.7. While here, changeKristaps Dzonsons2011-08-192-64/+80
| | | | out the \*q escapes. Also fix some spelling typos in both manuals.
* Make LANGUAGE SYNTAX examples a bit more explanatory.Kristaps Dzonsons2011-08-191-14/+20
|
* First, use \(dq instead of \*q for double-quote. Second, use `Li' toKristaps Dzonsons2011-08-191-74/+67
| | | | | | | 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-12/+8
| | | | | | | | | 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-9/+14
|
* Have `Li' be correctly monospaced in -T[x]html. Also make sure thatKristaps Dzonsons2011-08-183-7/+7
| | | | | `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-33/+44
|
* Add example of comments in man.7 and mdoc.7.Kristaps Dzonsons2011-08-172-4/+20
|
* Sync man.7's LANGUAGE SYNTAX (was INPUT ENCODING) with mdoc.7.Kristaps Dzonsons2011-08-171-49/+121
| | | | | 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-61/+93
| | | | | | | | - 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-93/+29
|