aboutsummaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
* Use size_t in manpath instead of int.Kristaps Dzonsons2012-06-082-8/+8
|
* forgot to commit one request bu espie@Ingo Schwarze2012-06-051-1/+4
|
* Close a preceding implicit block before opening an explicit block.Ingo Schwarze2012-06-031-17/+29
| | | | | | | | To allow doing so, no longer abuse rew_scope() to unwind explicit blocks; explicitly call man_unscope() instead. Fixing the indentation of slapd.conf(5) in the OpenLDAP port; thanks to guenther@ for the report.
* Minimal implementation of .EX and .EE for GNU compatibility.Ingo Schwarze2012-06-027-11/+33
| | | | | Do not use this, it is not portable and only defined in esr's man-ext. For example, sox(1) wants these macros.
* Fix blank line handling in .if.Ingo Schwarze2012-05-311-34/+25
| | | | | | | | | | In particular, two cases were wrong: - single-line .if with trailing whitespace gave no blank line - multiline .if with \{ but without \{\ gave no blank line While here, simplify roff_cond() by partially reordering the code. "good one" kristaps@
* While i already got my fingers dirty on mandoc_escape(),Ingo Schwarze2012-05-311-68/+65
| | | | | | | | | | | | | profit of the occasion to pull out some spaghetti, that is, three confusing variables and fourteen pointless assignments among them; instead, always operate on the official pointers **start, **end, and *sz, each of which conveys an obvious meaning. No functional change intended, and the new tests confirm that everything still (err...) "works", as far as that word can be applied to the kind of roff(7) mock-up code i'm polishing here. "just commit" kristaps@
* Make recursive parsing of roff(7) escapes actually work in the general case,Ingo Schwarze2012-05-311-118/+37
| | | | | | | | | | | | | | in particular when the inner escapes are preceded or followed by other terms. While doing so, remove lots of bogus code that was trying to make pointless distinctions between numeric and non-numeric escape sequences, while both actually share the same syntax and we ignore the semantics anyway. This prevents some of the strings defined in the pod2man(1) preamble from producing garbage output, in particular in scandinavian words. Of course, proper rendering of scandinavian national characters cannot be expected even with these fixes. "just commit" kristaps@
* Implement the roff \z escape sequence, intended to output the nextIngo Schwarze2012-05-316-45/+131
| | | | | | | | | | | | | | | | | | character without advancing the cursor position; implement it to simply skip the next character, as it will usually be overwritten. With this change, the pod2man(1) preamble user-defined string \*:, intended to render as a diaeresis or umlaut diacritic above the preceding character, is rendered in a slightly less ugly way, though still not correctly. It was rendered as "z.." and is now rendered as ".". Given that the definition of \*: uses elaborate manual \h positioning, there is little chance for mandoc(1) to ever render it correctly, but at least we can refrain from printing out a spurious "z", and we can make the \z do something semi-reasonable for easier cases. "just commit" kristaps@
* catch up with the changed interface of mparse_alloc(), see mandoc.h rev 1.100Ingo Schwarze2012-05-311-2/+2
|
* .if vertical spacing now fixed in OpenBSDIngo Schwarze2012-05-311-5/+1
|
* clarify two entries related to roff(7) escapesIngo Schwarze2012-05-281-4/+5
|
* Fix the vertical spacing around tbl(7) instances in man(7).Ingo Schwarze2012-05-273-7/+15
| | | | | | | | | | | | | | | Groff forces the document author to manually request sufficient spacing after .TE - that is, at least .sp 1v after a table with the "box" option and at least .sp 2v after a table with the "doublebox" option - or else it clobbers the box. I consider that insane, so i'm not imitating groff in that respect. Instead, i add at least as much vertical space as groff, or more where required to avoid clobbering the box. Consequently, output will be identical for input that looks sane with groff, and mandoc will make output look better for input that looks bad with groff. "Please check them in and I'll look into them later!" kristaps@
* Correct width of horizontal spans; relevant in case of centered orIngo Schwarze2012-05-271-4/+12
| | | | | | | | flush right text, for boxes, and when more columns follow the span. Issue found by sthen@ in the net/arp-scan(1) port manual. "Please check them in and I'll look into them later!" kristaps@
* Do not handle vertical lines as additional tbl(7) columns,Ingo Schwarze2012-05-276-227/+77
| | | | | | | | | | | | | | | | instead save their properties with the following column. This simplifies layout parsing and saves a lot of code related to column handling. At output time, print all white space and vertical lines separating columns before printing the following column, and none after printing the preceding column, considerably simplifying white space handling and width calculations. No functional change, but it saves 150 lines of code, and it allows the next patch to tbl_term.c, tbl_literal(). "Please check them in and I'll look into them later!" kristaps@
* Support -Ios='OpenBSD 5.1' to override uname(3) as the source of theIngo Schwarze2012-05-2710-34/+71
| | | | | | | | | | default value for the mdoc(7) .Os macro. Needed for man.cgi on the OpenBSD website. Problem with man.cgi first noticed by deraadt@; beck@ and deraadt@ agree with the way to solve the issue. "Please check them in and I'll look into them later!" kristaps@
* update Copyright years according to the CVS logs; no code changeIngo Schwarze2012-05-276-14/+14
|
* Horizontal spacing of tables was fixedIngo Schwarze2012-05-271-10/+1
| | | | | | in tbl_term.c rev. 1.10 and out.c rev. 1.16 on September 20, 2011. I merely forgot to delete the TODO entry.
* The .\} -> .\& -> pset() bug reported by naddy has already been fixed;Ingo Schwarze2012-05-271-10/+3
| | | | | | | i'm really sure because i both stepped through the code with gdb and wrote an OpenBSD regression test for it. While here, note that bentley@ reported .ti .ce .fc missing.
* Discourage the use of esr's man-ext macros:Ingo Schwarze2012-04-151-7/+4
| | | | | | If man(7) has any advantage compared to mdoc(7), it's portability, and using man-ext would needlessly give that advantage away. ok kristaps@
* The -width and -offset macro arguments consume the next argumentIngo Schwarze2012-04-151-39/+5
| | | | | even if it starts with a dash. ok kristaps@
* Being reluctant to add yet more trailing whitespace, i rather backIngo Schwarze2012-04-151-9/+9
| | | | it out here than merge it to OpenBSD. No binary change.
* Some documentation nits.Kristaps Dzonsons2012-03-253-17/+7
|
* Fix lookup not to use full-out regexp search.Kristaps Dzonsons2012-03-251-2/+2
|
* FreeBSD, NetBSD and DragonFly use the same names as Linux.Joerg Sonnenberger2012-03-241-1/+5
| | | | Add dummy entry for OpenBSD and XXX entry for the rest.
* Forgot chdir(2) into volume path.VERSION_1_12_1Kristaps Dzonsons2012-03-241-1/+2
|
* Small tweaks for release.Kristaps Dzonsons2012-03-242-10/+13
|
* Get ready for a version.Kristaps Dzonsons2012-03-243-50/+36
|
* Be insane. Make apropos(1) subsume man(1).Kristaps Dzonsons2012-03-245-37/+125
|
* Simplify by not pre-filtering the result vector for satisfied matches:Kristaps Dzonsons2012-03-244-108/+118
| | | | we can do this in the frontend.
* Whitespace fix.Kristaps Dzonsons2012-03-241-2/+2
|
* Knock out useless & confusing whatis mode.Kristaps Dzonsons2012-03-231-29/+9
|
* Improve mandocdb's ability to handle NAME sections by sucking the entireKristaps Dzonsons2012-03-231-10/+58
| | | | | shebang into a buffer and parsing it that way. This improves on many cruddy -man manuals in the wild.
* Make the `-width' field to `Bl' not puke if it doesn't have an argument.Kristaps Dzonsons2012-03-232-5/+10
| | | | This makes mandoc work much, much nicer with Mac OSX manpages.
* Clean up code a bit by pushing warnings into WARNING macro.Kristaps Dzonsons2012-03-231-64/+49
|
* Merge some/most of schwarze@'s OpenBSD changes into mandoc: many moreKristaps Dzonsons2012-03-232-118/+161
| | | | | | | | | | | | | | | warnings about grokking manpages in their respective directories. DO NOT, however, import his temporary-file routines (I don't plan on staying with a recno/btree split) nor the realpath() routines, which destroy relative path-ness. Also pull in the lorder bits. There are some changes I started to make then stopped relating to reporting errors in the correct directories. I'll clean this up in subsequent commits. This puts us more or less on parity with OpenBSD.
* Remove some Mac OS crap in the Makefile.Kristaps Dzonsons2012-03-231-6/+10
|
* Don't run superfluous mkdir when installing.Kristaps Dzonsons2012-03-231-1/+0
|
* Revert to mandocdb.{index,db} for database files.Kristaps Dzonsons2012-03-232-7/+8
|
* two remindersIngo Schwarze2012-03-041-1/+4
|
* Correct the expansion of -xbd5;Ingo Schwarze2012-02-261-2/+2
| | | | | from Philip Guenther <guenther at openbsd dot org>. OK Werner Lemberg <wl at gnu dot org>.
* Add mparse_readmem, which allows application to run the parser directlyJoerg Sonnenberger2012-02-162-43/+57
| | | | from memory, e.g. after de-compressing a document.
* Don't silently skip non-ASCII characters, but replace them with ``?''.Joerg Sonnenberger2012-02-051-5/+8
| | | | This is less likely to break the syntax of macros.
* Add libquotaJoerg Sonnenberger2012-01-281-1/+2
|
* Add libisns, libppath and libsaslc from NetBSD. Fix formatting of librt.Joerg Sonnenberger2012-01-281-2/+5
|
* Add x86 pseudo architecureJoerg Sonnenberger2012-01-281-1/+2
|
* Add entry about the .TP / .RS crash before I forget about it again.Joerg Sonnenberger2012-01-231-1/+3
|
* Reflect reality, mandoc_escape does not skip the "\" itself, but expectsJoerg Sonnenberger2012-01-131-3/+5
| | | | the caller to have done that.
* Fix previous such that all .It HEADs are unparsed,Ingo Schwarze2012-01-051-11/+9
| | | | | | | not just the first one in each -diag list. While here, drop the needless if-statement and choose a more precise wording for the comment. ok kristaps@
* Local variable initialisation.Kristaps Dzonsons2012-01-031-2/+2
|
* Add support for `OP', one of the extended man macros. This also requiresKristaps Dzonsons2012-01-037-23/+112
| | | | some man(7) changes to accomodate for the an-ext compatibility.