aboutsummaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
* Implement the \N'number' (numbered character) roff escape sequence.Ingo Schwarze2011-01-307-11/+125
| | | | | | | Don't use it in new manuals, it is inherently non-portable, but we need it for backward-compatibility with existing manuals, for example in Xenocara driver pages. ok kristaps@ jmc@ and tested by Matthieu Herrb (matthieu at openbsd dot org)
* When in a <PRE>, don't print out the <BR> before lines that have leadingKristaps Dzonsons2011-01-292-6/+21
| | | | whitespace.
* Remove unnecessary conditional...Kristaps Dzonsons2011-01-252-6/+4
|
* Arguments to `Bsx' and friends are separated by a non-breaking space.Kristaps Dzonsons2011-01-253-9/+16
| | | | This removes a TODO raised by schwarze@.
* Push capitalisation of `Bx' second argument into validator, where it belongs.Kristaps Dzonsons2011-01-253-18/+28
|
* Properly uppercase the first-letter of the `Bx' second argument.Kristaps Dzonsons2011-01-252-7/+17
|
* Have `Bx' accept two arguments, not just one, and join these argumentsKristaps Dzonsons2011-01-254-22/+40
| | | | with "xxBSD-yy"
* Avoid double blank line before a table preceded by .PP.Ingo Schwarze2011-01-251-1/+4
| | | | ok kristaps@
* Since tbl_data() can now produce multiple spans, let parsebuf()Ingo Schwarze2011-01-254-14/+24
| | | | | | | generate man(7) or mdoc(7) nodes for all these spans, not only for the last one. Restores the horizontal lines in the cpu(4/hppa) tables. ok kristaps@
* Do not skip data after horizontal lines in the layout.Ingo Schwarze2011-01-251-17/+45
| | | | | | | | | | Instead, let one line of input data add two new spans to the tbl tree during one single call of tbl_data(). Note that this causes the horizontal line to get parsed into the tbl tree, but not yet used in the output, which will be fixed next. Avoids data loss in cpu(4/hppa). ok kristaps@
* correct horizontal spacing of data cellsIngo Schwarze2011-01-252-11/+14
| | | | | | correct alignment of centered cells adjust horizontal rule width to the new spacing ok kristaps@
* If %B is specified, quote %T. Noted by schwarze@ in the TODO.Kristaps Dzonsons2011-01-254-14/+9
|
* Ignore .ns (no-space mode), .ps (change point size), .ta (tab control)Ingo Schwarze2011-01-252-2/+22
| | | | | | for now. All of these just cause a bit too much or too little whitespace, but no serious formatting problems. Triggered by reports from brad@.
* As noticed by deraadt@, it goes without saying that text filesIngo Schwarze2011-01-253-16/+6
| | | | | | on a UNIX system use UNIX conventions, and UNIX tools working on them expect that. ok jmc@
* Skip carriage return before newline, if any.Ingo Schwarze2011-01-241-4/+21
| | | | | | As pointed out by Joerg Sonnenberger, this is useful because we use mmap(3) and look for '\n' by hand. "check it in" kristaps@
* Better explain roff(7) macro argument quoting;Ingo Schwarze2011-01-242-10/+46
| | | | ok jmc@.
* results of some systematic comparisonsIngo Schwarze2011-01-241-2/+95
|
* not implemented: adjustmentIngo Schwarze2011-01-231-1/+14
|
* Fix another regression caused by the reorg of print_man_node() in rev. 1.97:Ingo Schwarze2011-01-231-1/+4
| | | | End-of-sentence spacing got lost for man(7) after plain text lines.
* some more reports from brad@Ingo Schwarze2011-01-221-1/+11
|
* missing: .ns, .UR; reported by brad@Ingo Schwarze2011-01-221-5/+9
|
* sort missing features, no change of contentIngo Schwarze2011-01-221-19/+29
|
* Lots of in-line macros require arguments but were not marked as such.Ingo Schwarze2011-01-221-11/+11
| | | | Check prompted by kristaps@.
* Check argument count validation for all in_line() macros.Ingo Schwarze2011-01-221-37/+21
| | | | | | | | Most empty in_line() macros are already removed by the parser, so there is no need to check again in mdoc_validate.c. This also downgrades almost all remaining argument count issues from ERROR to WARNING. ok kristaps@
* When finding the roff .it request (line trap),Ingo Schwarze2011-01-222-3/+8
| | | | | make it clear that you cannot use mandoc to format that page (yet). Triggered by a report from brad@, ok kristaps@.
* "decimalpoint" is in fact supported.Kristaps Dzonsons2011-01-171-4/+2
|
* Refrain from throwing fatal errors forIngo Schwarze2011-01-173-40/+30
| | | | | | | * .br .sp .nf .fi .na with arguments - just skip the arguments * .TH lacking arguments - use empty strings instead like groff * .TH with excessive arguments - skip those Reminded by joerg@, ok kristaps@.
* When processing a blank text line, do not break out of text processingIngo Schwarze2011-01-161-3/+3
| | | | | | into macro processing code. Fixing a regression introduced in 1.95, found because it caused segfaults in my regression suite. OK kristaps@
* Implement the roff .rm request (remove macro).Ingo Schwarze2011-01-161-12/+19
| | | | | | Using the new roff_getname() function, this is really simple. Breaks mandoc of the habit of reporting an error in each pod2man(1) preamble. Reminded by a report from brad@; ok kristaps@.
* Change how -Thtml behaves with tables: use multiple rows, with widthsKristaps Dzonsons2011-01-135-54/+117
| | | | | | | | | set by COL, until an external macro is encountered. At this point in time, close out the table and process the macro. When the first table row is again re-encountered, re-start the table. This requires a bit of tracking added to "struct html", but the change is very small and follows the logic of meta-fonts. This all follows a bug-report by joerg@.
* Incorporate same fix for -man post-validation deletion of nodes. ThisKristaps Dzonsons2011-01-121-3/+10
| | | | isn't known to cause any problems, but better safe than sorry.
* Downgrade -man message of ignored empty paragraph to MANDOC_IGNPAR. TheKristaps Dzonsons2011-01-123-41/+34
| | | | | | | | | | | change in man_macro.c was from an assertion caused by a subtle problem: (1) macro is removed, causing m->last to be m->last->parent; (2) by jumping to the m->last->parent after post-validation, the original m->last->parent is skipped; (3) the rewinder climbs to the root of the tree and aborts. The original issue recorded in the TODO by schwarze@, reminded by Brad Smith.
* Make out-of-context `fi' invocations not cause an error, but just aKristaps Dzonsons2011-01-124-9/+7
| | | | warning. From a TODO by schwarze@, originally noted by Brad Smith.
* Bring in -Tascii comments for -Thtml MANH_LITERAL line-breaking stuff.Kristaps Dzonsons2011-01-121-6/+16
|
* Make sure that -Thtml doesn't break within literal lines. This is theKristaps Dzonsons2011-01-122-19/+7
| | | | same logic as the -Tascii case. Also remove the TODO.
* Make -man -Tascii not break within literal lines, e.g.,Kristaps Dzonsons2011-01-121-28/+34
| | | | | | | | | | .nf .B hello world .fi Also, clean up the print_man_node() function a little bit. This problem has long since been in the TODO and was recently noted again by Brad Smith. The -T[x]html fix will follow...
* If the first character of free-form text is whitespace, then a newlineKristaps Dzonsons2011-01-129-21/+53
| | | | shall precede outputted text (surprise!).
* Note that "^" needs an empty cell, while "s" does not.Kristaps Dzonsons2011-01-111-1/+3
|
* Add support for "^" vertical spanners. Unlike GNU tbl, raiseKristaps Dzonsons2011-01-116-14/+47
| | | | | | | error-class messages when data is being ignored by specifying it in "^" cells (either as-is or in blocks). Also note again that horizontal spanners aren't really supported...
* Don't let `in' creep past the right margin.Kristaps Dzonsons2011-01-111-1/+6
| | | | From an assertion noted by Brad (at comstyle).
* Refactoring in preparation for .rm support:Ingo Schwarze2011-01-113-41/+50
| | | | | | | | | | Unify parsing of names given as roff request arguments into a new function roff_getname(), which is rather different from the parsing function for normal arguments, mandoc_getarg(), because names cannot be quoted and cannot contain whitespace or escaped characters. The new function now throws an ERROR when finding escaped characters in a name. "I'm fine with this." kristaps@
* Clarify what members may be NULL or not in calculating widths. MakeKristaps Dzonsons2011-01-104-27/+31
| | | | | sure signedness is correct. Verify that layouts MUST exit for data cells.
* Make dp->string always consist of a value.Kristaps Dzonsons2011-01-102-17/+16
|
* First, make extra data cells be thrown away. This makes "dp->layout"Kristaps Dzonsons2011-01-108-42/+92
| | | | | | | | | | | | always hold, which cleans up the table stuff a bit. Second, set a "spans" value per data cell consisting of the number of skipped TBL_CELL_SPAN layout cells. Third, make tbl_term.c understand how to skip over spanned sections when iterating over the header queue. What remains is to calculate the widths of spanned cells.
* some minor issues reported by brad@Ingo Schwarze2011-01-101-1/+16
|
* When a row of data is being parsed and it's a line or double-lineKristaps Dzonsons2011-01-091-4/+10
| | | | | | | (instead of data), re-use the last "layout" pointer instead of advancing to the next one. This fixes a segfault report by joerg@.
* Remove lots of issues that have been resolved,Ingo Schwarze2011-01-091-23/+16
| | | | and rephrase some that have been partially resolved.
* Add some unsigned char casts for tolower() usageJoerg Sonnenberger2011-01-092-6/+6
|
* Note that we support the "a" key.Kristaps Dzonsons2011-01-081-3/+2
|
* The numerical column type centres on the *last* decimal point.Kristaps Dzonsons2011-01-083-6/+6
|