Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | When in a <PRE>, don't print out the <BR> before lines that have leading | Kristaps Dzonsons | 2011-01-29 | 1 | -2/+16 | |
| | | | | whitespace. | |||||
* | Arguments to `Bsx' and friends are separated by a non-breaking space. | Kristaps Dzonsons | 2011-01-25 | 1 | -1/+7 | |
| | | | | This removes a TODO raised by schwarze@. | |||||
* | Push capitalisation of `Bx' second argument into validator, where it belongs. | Kristaps Dzonsons | 2011-01-25 | 1 | -7/+2 | |
| | ||||||
* | Properly uppercase the first-letter of the `Bx' second argument. | Kristaps Dzonsons | 2011-01-25 | 1 | -3/+8 | |
| | ||||||
* | Have `Bx' accept two arguments, not just one, and join these arguments | Kristaps Dzonsons | 2011-01-25 | 1 | -6/+14 | |
| | | | | with "xxBSD-yy" | |||||
* | Change how -Thtml behaves with tables: use multiple rows, with widths | Kristaps Dzonsons | 2011-01-13 | 1 | -3/+19 | |
| | | | | | | | | | 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@. | |||||
* | If the first character of free-form text is whitespace, then a newline | Kristaps Dzonsons | 2011-01-12 | 1 | -0/+2 | |
| | | | | shall precede outputted text (surprise!). | |||||
* | Quiesce lint with some type handling. Does not change anything. | Kristaps Dzonsons | 2011-01-07 | 1 | -3/+4 | |
| | ||||||
* | Add skeleton for -T[x]html tbl stuff. Also start to put in some bits about | Kristaps Dzonsons | 2011-01-04 | 1 | -1/+4 | |
| | | | | the up-coming version, although we're not quite there yet. | |||||
* | Add table processing structures to -mdoc. This consists of an | Kristaps Dzonsons | 2011-01-01 | 1 | -0/+2 | |
| | | | | | | external-facing function mdoc_addspan(), then various bits to prohibit printing and scanning (this requires some if's to be converted into switch's). | |||||
* | Make `Fo' use a B instead of SPAN (left-over). | Kristaps Dzonsons | 2010-12-24 | 1 | -2/+2 | |
| | ||||||
* | Apparently the U tag is deprecated, so use a SPAN instead (blah). Bump | Kristaps Dzonsons | 2010-12-24 | 1 | -1/+0 | |
| | | | | version date for release. | |||||
* | As per schwarze@'s suggestions, roll back the refcount structure in | Kristaps Dzonsons | 2010-12-24 | 1 | -24/+24 | |
| | | | | | | | | favour of a simpler shim for normalised data in the node allocation and free routines. This removes the need to bump and copy references within validator handlers, removes a pointer redirect, and also kills the refcount structure itself. Data is assumed to "live" either in a MDOC_BLOCK or MDOC_ELEM and is copied accordingly. | |||||
* | Ensure -Thtml has DIV as child of BLOCKQUOTE. | Kristaps Dzonsons | 2010-12-23 | 1 | -5/+5 | |
| | ||||||
* | Implement reference-counted version of original union mdoc_data. This | Kristaps Dzonsons | 2010-12-22 | 1 | -31/+31 | |
| | | | | | | | simplifies clean-up and allows for more types without extra hassle. Also made in-line literal types in -T[x]html use CODE instead of SPAN to match how literal blocks use PRE. | |||||
* | Fix list-type being clobbered by margins. Last default styles in place. | Kristaps Dzonsons | 2010-12-20 | 1 | -12/+13 | |
| | | | | | Added `Sx' to be default-italic (as in OpenBSD's cvsweb). Added `diag' formatting, which had been lost. | |||||
* | More use default tags, this time I and U. Also fix a stack overflow | Kristaps Dzonsons | 2010-12-20 | 1 | -10/+17 | |
| | | | | segfault in the last commit. | |||||
* | Give header and footer table cells default widths (using WIDTH and ALIGN | Kristaps Dzonsons | 2010-12-20 | 1 | -20/+52 | |
| | | | | | | | | | atttributes) if no style is specified. Give the default-bold elements a B tag instead of a SPAN tag, as this can be overriden in the stylesheet. Prune some unused attributes from html.h. | |||||
* | Migrate schwarze@'s `Bk' argument patch to -T[x]html. | Kristaps Dzonsons | 2010-12-19 | 1 | -1/+2 | |
| | ||||||
* | Don't use EM for default widths; use BU instead. | Kristaps Dzonsons | 2010-12-17 | 1 | -2/+2 | |
| | ||||||
* | Prevent double-printing of `D1' or `Dl' DIV. | Kristaps Dzonsons | 2010-12-17 | 1 | -4/+3 | |
| | ||||||
* | Add a "list" top-level tag, too. | Kristaps Dzonsons | 2010-12-17 | 1 | -1/+4 | |
| | ||||||
* | Remove useless DIVs in favour of BRs. Fix `Ex' by having it print a prior | Kristaps Dzonsons | 2010-12-17 | 1 | -3/+9 | |
| | | | | BR. Fix `Rv' by only having it print a BR if there's a prior. | |||||
* | Make literal `Bd' use a PRE in -Thtml. Make `Bd' output in general use | Kristaps Dzonsons | 2010-12-17 | 1 | -29/+21 | |
| | | | | only a single DIV or PRE. Tag all displays with display class. | |||||
* | Have synopsis_pre() in -Thtml emit P or BR, not DIVs. | Kristaps Dzonsons | 2010-12-17 | 1 | -42/+22 | |
| | | | | Banish header and footer TABLE styling to example.style.css. | |||||
* | Make SYNOPSIS `Nm' use a TABLE in -T[x]html mode. Also fix `Nd' using | Kristaps Dzonsons | 2010-12-17 | 1 | -54/+32 | |
| | | | | desc-body instead of desc as its CSS key. | |||||
* | Significantly clean up Sh, Ss, SH, and SS handling in -Thtml. Now a | Kristaps Dzonsons | 2010-12-17 | 1 | -69/+22 | |
| | | | | | | top-level DIV is used with only an H1 or H2 as the section header. This makes manuals much more readable in lynx, less complicated, and relegates left-margin widths to example.style.css. | |||||
* | Get widths to be propertly represented in -T[x]html. | Kristaps Dzonsons | 2010-12-16 | 1 | -6/+17 | |
| | ||||||
* | Remove `Pp' and `Lp' checks in front-ends to make sure we're not | Kristaps Dzonsons | 2010-12-15 | 1 | -5/+0 | |
| | | | | | printing as the first or last child of an `Ss' or `Sh': this is now ensured within the validator. | |||||
* | Use a single P tag for paragraph breaks (which can be configured for | Kristaps Dzonsons | 2010-12-15 | 1 | -29/+33 | |
| | | | | | | | paragraph breaking in CSS). Use -man's handling of `sp' and `br', which accomodates for scaling widths (-mdoc wasn't). | |||||
* | Make sure that new list types don't emit whitespace before or after (we | Kristaps Dzonsons | 2010-12-15 | 1 | -20/+15 | |
| | | | | have to do this manually). | |||||
* | Clarify purpose of "lit". | Kristaps Dzonsons | 2010-12-15 | 1 | -6/+10 | |
| | | | | Make `Dl' and `D1' both use BLOCKQUOTE instead of DIVs. | |||||
* | Remove stupid outer DIV tag in favour of regular BODY and HTML that can | Kristaps Dzonsons | 2010-12-15 | 1 | -6/+0 | |
| | | | | | | | | be handled in CSS. Clarified "lit" tag (will be the subject of future clarification). Removed CSS2 note in mandoc.1, which is no longer the case. | |||||
* | Added list-type style tips. | Kristaps Dzonsons | 2010-12-15 | 1 | -11/+12 | |
| | ||||||
* | In-progress move from -T[x]html using DIVs for its lists to using DL, | Kristaps Dzonsons | 2010-12-15 | 1 | -238/+150 | |
| | | | | | OL, and UL. Issue raised by Will Backman, solution proposed by schwarze@. | |||||
* | Merge schwarze@'s changes allowing nested displays. Tweak the patch by | Kristaps Dzonsons | 2010-12-05 | 1 | -0/+4 | |
| | | | | | | | making sure output doesn't add a superfluous newline with the nested displays. Also add a COMPATIBILITY note. Rename a macro (DATESIZ) to be in line with OpenBSD (DATESIZE). | |||||
* | Move `Mt', `Ar', and `Li' handling from mdoc_action.c into mdoc_validate.c. | Kristaps Dzonsons | 2010-11-29 | 1 | -1/+1 | |
| | | | | | | | | Clarify that `Mt' gets a default `~' (as per groff 1.20) and document it in mdoc.7. Made `Lk' be removed in mdoc_macro.c if it has no arguments. This fixes segfaults in mdoc_{term,html}.c that nobody's managed to raise yet. | |||||
* | let .Bsx print just "BSD/OS" like in modern groff | Ingo Schwarze | 2010-10-23 | 1 | -1/+1 | |
| | | | | from Ulrich Spoerlein <uqs at spoerlein dot net> | |||||
* | `Sm' no longer produces a linebreak when used in `Bd'. | Kristaps Dzonsons | 2010-10-10 | 1 | -1/+12 | |
| | ||||||
* | * need a space before .No even if it starts with a closing delimiter | Ingo Schwarze | 2010-10-01 | 1 | -5/+4 | |
| | | | | | | | * slightly simplify .Pf *_IGNDELIM code, and share part of it with .No * do not let opening delimiters fall out of the front of .Ns (from kristaps@) This fixes a few spacing issues in csh(1) and ksh(1). OK kristaps@ | |||||
* | Fix small regression where `Op' had an extra space between the "[" and the SPAN. | Kristaps Dzonsons | 2010-10-01 | 1 | -0/+1 | |
| | ||||||
* | Suppress whitespace following Pp, Lp, sp, and the other newline-emitting | Kristaps Dzonsons | 2010-09-27 | 1 | -0/+20 | |
| | | | | macros within an unfilled or literal `Bd'. | |||||
* | Consolidated all -T[x]html punctuation macros into one function. | Kristaps Dzonsons | 2010-09-26 | 1 | -213/+142 | |
| | ||||||
* | A `%T' invoked outside of `Rs' should not produce trailing punctuation. | Kristaps Dzonsons | 2010-09-25 | 1 | -1/+3 | |
| | | | | | 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. Remove | Kristaps Dzonsons | 2010-09-25 | 1 | -6/+3 | |
| | | | | | | corresponding TODO entry. Also have the "." after an `Rs' block trigger inter-sentence spacing. | |||||
* | Churny commit to quiet lint. No functional changes. | Kristaps Dzonsons | 2010-09-04 | 1 | -1/+1 | |
| | ||||||
* | Properly handle -mdoc %A in all outputs. This has two-author entires | Kristaps Dzonsons | 2010-09-04 | 1 | -0/+9 | |
| | | | | | | | separated by only "and" while two or more are with ", and" for the last author. Also remove relevant TODO and add regression tests. | |||||
* | Implement a simple, consistent user interface for error handling. | Ingo Schwarze | 2010-08-20 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | We now have sufficient practical experience to know what we want, so this is intended to be final: - provide -Wlevel (warning, error or fatal) to select what you care about - provide -Wstop to stop after parsing a file with warnings you care about - provide consistent exit status codes for those warnings you care about - fully document what warnings, errors and fatal errors mean - remove all other cruft from the user interface, less is more: - remove all -f knobs along with the whole -f option - remove the old -Werror because calling warnings "fatal" is silly - always finish parsing each file, unless fatal errors prevent that This commit also includes a couple of related simplifications behind the scenes regarding error handling. Feedback and OK kristaps@; Joerg Sonnenberger (NetBSD) and Sascha Wildner (DragonFly BSD) agree with the general direction. | |||||
* | same as mdoc_term.c rev. 1.180: | Ingo Schwarze | 2010-08-07 | 1 | -4/+4 | |
| | | | | | preserve blank lines at the end of .Bd -literal patch from kristaps@, who asked me to commit this | |||||
* | Fix how `Bd -unfilled' and `Bd -literal' break lines. This unbreaks | Kristaps Dzonsons | 2010-07-27 | 1 | -7/+4 | |
| | | | | | displays to work as old groff shows them; however, new groff still does some fancy shit. |