summaryrefslogtreecommitdiffstats
path: root/man_html.c
Commit message (Collapse)AuthorAgeFilesLines
* Enable literal contexts (Vb/nf) in -T[x]html -man. This requires that aKristaps Dzonsons2010-07-231-18/+64
| | | | | | | | new struct pass down in the call-tree (as also in man_term.c). Also add a line-break for `in', which isn't otherwise supported (yet). Now -Thtml -man cvs.1 for GNU's cvs.1 isn't as ugly.
* Fix broken compilation, hopefully before anybody notices.Kristaps Dzonsons2010-07-221-1/+1
|
* Added `in' macro support for -man -Tascii. This is not yet supported inKristaps Dzonsons2010-07-221-0/+1
| | | | -Thtml (I'm surprised to note that neither is LITERAL mode).
* correct lots of copyright notices;Ingo Schwarze2010-07-131-1/+1
| | | | ok kristaps@
* Re-constitution of `ds' symbol processing. First, push theKristaps Dzonsons2010-07-071-1/+0
| | | | | | | | | roff_getstr() family of functions into roff.c with the "first_string" directly in struct roff. Second, pre-process each line for reserved words in libroff, splicing and re-running a line if it has one (this allows defined symbols to be macros). Remove term.c's invocation of the roff_getstrn() function. Removed function documentation in roff.3 and added roff.7 `ds' documentation.
* Following clue-stick applied by schwarze@, back out const-ness of regsetKristaps Dzonsons2010-06-271-0/+1
| | | | | | | | | passed in to libmdoc and libman. Fix mdoc.3 and man.3 EXAMPLE sections to include regset. Add MDOC_SYNPRETTY flag cueing front-end to nicely format certain values as if SEC_SYNOPSIS were the current section.
* Downstream maintainers: this removes UGLY! I don't want divergingKristaps Dzonsons2010-06-271-1/+0
| | | | | | | | | functionality and UGLY works quite well thanks to schwarze@'s careful attention. This also backs out function-prototype changes for struct regset, instead stuffing a pointer to the regset directly into struct mdoc/man/roff.
* Churn-ish check-in getting mdoc_parseln() and man_parseln() to accept aKristaps Dzonsons2010-06-261-0/+1
| | | | const struct regset pointer. No functionality.
* Churn as I finish email address migration kth.se -> bsd.lv.Kristaps Dzonsons2010-06-191-1/+1
|
* Allow bad -man dates to flow verbatim into the front-ends. Noted byKristaps Dzonsons2010-05-261-1/+4
| | | | Ulrich Spoerlein.
* Enable the unified error/warning enumeration in mandoc.h that'sKristaps Dzonsons2010-05-171-0/+1
| | | | | | | | | | | stringified in main.c. Allow `An' to handle an argument and child (with a warning). Allow `Rv' and `Ex' to work without a prior `Nm' as groff does (with a warning). Allow inconsistent column syntax to only raise a warning.
* Add support for .AT. Properly implement .UC. Add regress tests.Joerg Sonnenberger2010-05-171-0/+1
|
* Remove `am', `ami', `de', `dei', and `.' from -man, as they're now in the ↵Kristaps Dzonsons2010-05-151-5/+0
| | | | roff preprocessor.
* Pull `ig' out of -man and leave it the roff preparser.Kristaps Dzonsons2010-05-151-1/+0
|
* Removed restriction on integer manual sections in -man.Kristaps Dzonsons2010-05-151-2/+2
|
* Using man_node_delete() instead of man_node_free()/man_node_freelist() and ↵Kristaps Dzonsons2010-03-241-1/+7
| | | | | | | friends (much simpler). Split blk_imp() into blk_exp() (explicit macros), blk_dotted() (roff macros), and the original. Added de, dei, am, ami, and ig roff macros (for now, these are discarded within the parse).
* Support for pod2man standard header macros (Vb, Ve, Sp). Based largely on a ↵Kristaps Dzonsons2010-03-231-3/+14
| | | | set of patches by Ingo Schwarze.
* Clarify -man -T[x]html handling of `br' within `B'.Kristaps Dzonsons2010-03-221-4/+22
| | | | | Consolidated node unlinking in -man. Conclude nested next-line scope issues noted by Ingo Schwarze.
* Accomodate (libman) for next-line macros followed by non-text macros `na', ↵Kristaps Dzonsons2010-03-221-1/+7
| | | | | | `sp', and `br'. Based on a patch by Ingo Schwarze.
* Fixed Makefile for `make lint' dep. on config.hKristaps Dzonsons2010-01-291-1/+1
| | | | Added -Txhtml for XHTML output (minimal increase to programme logic). Because groff has it and it bothers me that we don't.
* Big check-in of compatibility layer. This should work on most major ↵Kristaps Dzonsons2010-01-011-5/+4
| | | | architectures. Thanks to Joerg Sonnenberger.
* Enabled -Thtml -mdoc to work with \f (see compat notes in mandoc.1).Kristaps Dzonsons2009-11-161-2/+8
|
* Abstraction of -Thtml -man font setting (still experimental).Kristaps Dzonsons2009-11-161-19/+12
|
* Fixed -Thtml -man PP left- and top-margin.Kristaps Dzonsons2009-11-151-6/+6
|
* \f escapes appear to work properly for -Thtml -man. Needs more testing.Kristaps Dzonsons2009-11-151-11/+18
|
* Initial check-in of -man -Thtml \f support (needs testing).Kristaps Dzonsons2009-11-141-3/+5
|
* Fixed \c handling in -Thtml.Kristaps Dzonsons2009-11-141-4/+1
|
* Noted that -man text decoration is re-set when exiting a macro invocation.Kristaps Dzonsons2009-11-101-0/+3
|
* More lint fixes.Kristaps Dzonsons2009-10-301-1/+0
| | | | Removed err.h from inclusions (less main.c--still in progress).
* Fixed `sp', `br', `Pp', etc. so as not to have an empty div (-Thtml, -man, ↵Kristaps Dzonsons2009-10-281-0/+3
| | | | | | | | -mdoc). Made html_idcat be completely correct (messy standard) (-Thtml). Fixed warnings about -ohang and -item lists (-Thtml, -mdoc). Fixed typo in index.sgml.
* Added "summary" tag to tables in order to silence HTML-tidy's complaints.Kristaps Dzonsons2009-10-271-4/+8
|
* Portability: replaced queue macros in html.c (Joerg Sonnenberger).Kristaps Dzonsons2009-10-261-2/+1
| | | | | Fixed "-o" residue. Added "-O" to usage() (-o didn't appear there either).
* Added `PD' to -man (doesn't do anything, yet).Kristaps Dzonsons2009-10-241-0/+2
|
* Fixed maddening mismatch between groff and strftime mismatch of day ("%e"). ↵Kristaps Dzonsons2009-10-221-6/+2
| | | | Noted by Ulrich Sporlein.
* Made sure devices and formats recognise that -man and -mdoc have different ↵Kristaps Dzonsons2009-10-181-6/+4
| | | | syntax for scaling widths: -mdoc assumes no unit means that the value is a string literal while -man instead uses the default vertical/horizontal scale.
* Moved output definitions into main.h.Kristaps Dzonsons2009-10-131-0/+1
| | | | Pushed terminal_{mdoc,man} into {mdoc,man}_term.c.
* RS tags implemented for -Tman -Thtml.Kristaps Dzonsons2009-10-091-1/+33
|
* Consolidated some -man -Tascii functions.Kristaps Dzonsons2009-10-081-14/+128
| | | | Added many -man -Thtml functions (almost complete).
* Additions to -Tman -Thtml: all structural components tested & in place.Kristaps Dzonsons2009-10-071-144/+137
| | | | Fitted both -Thtml with handling of arbitrary vertical and horizontal scaling units (see groff(7)). Undocumented until fitted into -Tascii (next release).
* Structural components of -man -Thtml in place (note that HP is the same as ↵Kristaps Dzonsons2009-10-041-20/+77
| | | | IP, as HTML doesn't "do" this construction without fixed page widths).
* Initial IP implementation in -Thtml -man.Kristaps Dzonsons2009-10-041-5/+92
|
* SS, SH, PP, P, LP, br, sp tags in -man -Thtml.Kristaps Dzonsons2009-10-041-9/+302
|
* Added initial -man framework for -Thtml.Kristaps Dzonsons2009-10-031-1/+96
|
* Element tag buffer is now part of struct html.Kristaps Dzonsons2009-10-031-0/+1
| | | | | | | buffmt() can be called in sequence. Noted BUFSIZ-sized buffer in CAVEATS (attribute length for link formats). Added -oman=FMT -Thtml option for `Xr' manual links. Removed -obase=URI -Thtml option (obsolete).
* Split html.c into html.h, mdoc_html.c, man_html.c.Kristaps Dzonsons2009-09-211-0/+30