summaryrefslogtreecommitdiffstatshomepage
path: root/html.c
Commit message (Collapse)AuthorAgeFilesLines
* Removed erroneous `{' and `}' as punctuation (see mdoc.samples "General ↵Kristaps Dzonsons2010-04-031-5/+3
| | | | | | Syntax" for why this mistake was made). Noted by Ingo Schwarze. Lines of text now break at a hyphen, unless the hyphen is the first or second subsequent in a word. Inspired by a Ingo Schwarze's patch.
* Fixed printing of XHTML DOCTYPE "html" vs. "HTML".Kristaps Dzonsons2010-02-171-2/+6
|
* Fix in handling Vt in SYNOPSIS with trailing punctuation. Spotted by Joerg ↵Kristaps Dzonsons2010-01-301-2/+1
| | | | Sonnenberger.
* Mandate html attributes for xhtml.Kristaps Dzonsons2010-01-301-6/+28
|
* Fixed Makefile for `make lint' dep. on config.hKristaps Dzonsons2010-01-291-15/+82
| | | | 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-6/+5
| | | | architectures. Thanks to Joerg Sonnenberger.
* Enabled -Thtml -mdoc to work with \f (see compat notes in mandoc.1).Kristaps Dzonsons2009-11-161-2/+2
|
* Abstraction of -Thtml -man font setting (still experimental).Kristaps Dzonsons2009-11-161-16/+37
|
* \f escapes appear to work properly for -Thtml -man. Needs more testing.Kristaps Dzonsons2009-11-151-2/+6
|
* Initial check-in of -man -Thtml \f support (needs testing).Kristaps Dzonsons2009-11-141-5/+47
|
* Removed superfluous HTML_NEWLINE.Kristaps Dzonsons2009-11-141-11/+2
|
* Fix of fix of -Thtml nospace.Kristaps Dzonsons2009-11-141-4/+4
|
* Fixed \c handling in -Thtml.Kristaps Dzonsons2009-11-141-6/+10
|
* Fixed \c support for all input and output modes (documented in mandoc_char.7).Kristaps Dzonsons2009-11-121-1/+4
|
* Lint fixes in function call.Kristaps Dzonsons2009-11-101-7/+7
|
* Documented \s and cleaned up \f documentation in mdoc.7, man.7.Kristaps Dzonsons2009-11-091-108/+35
| | | | -Thtml now using a2roffdeco().
* Documented that `\s' and `\f' don't work in HTML mode (and why).Kristaps Dzonsons2009-11-051-16/+14
| | | | Added support for recognising the many forms of `\s' (doesn't yet render).
* Added mandoc_a2time() for proper date conversion.Kristaps Dzonsons2009-11-021-2/+3
| | | | | Fitted TH and Dd handlers to use mandoc_a2time(). Documented date syntax for -man, fixed documentation for -mdoc.
* Lint fix.Kristaps Dzonsons2009-11-011-2/+2
|
* Using putchar for single-character prints (noted by Joerg Sonnenberger).Kristaps Dzonsons2009-11-011-6/+6
|
* print_encode() using strcspn instead of looping/putchar() (noted by Joerg ↵Kristaps Dzonsons2009-11-011-13/+13
| | | | Sonnenberger).
* Replaced putchar() loop with fwrite() (noted by Joerg Sonnenberger).Kristaps Dzonsons2009-11-011-8/+4
|
* Using perror() instead of fprintf for failure from library functions.Kristaps Dzonsons2009-10-311-3/+3
|
* More lint fixes.Kristaps Dzonsons2009-10-301-2/+1
| | | | Removed err.h from inclusions (less main.c--still in progress).
* Lint fixes.Kristaps Dzonsons2009-10-301-2/+2
| | | | Made realloc puke with fprintf.
* Continued safe handling of allocations.Kristaps Dzonsons2009-10-301-10/+12
|
* Added newline after block-level closing tags (suggested by Joerg Sonnenberger).Kristaps Dzonsons2009-10-301-4/+4
|
* Fixed `sp', `br', `Pp', etc. so as not to have an empty div (-Thtml, -man, ↵Kristaps Dzonsons2009-10-281-32/+14
| | | | | | | | -mdoc). Made html_idcat be completely correct (messy standard) (-Thtml). Fixed warnings about -ohang and -item lists (-Thtml, -mdoc). Fixed typo in index.sgml.
* Removed superfluous memset (thanks Joerg Sonnenberger).Kristaps Dzonsons2009-10-281-9/+7
|
* Fixed un-reset buffer in `.In', -Thtml, -mdoc.Kristaps Dzonsons2009-10-281-1/+49
| | | | Added html_id[cat,cpy] for transforming id's into well-formed attribute strings (no %s, etc.).
* Added "summary" tag to tables in order to silence HTML-tidy's complaints.Kristaps Dzonsons2009-10-271-1/+2
|
* Portability: replaced queue macros in html.c (Joerg Sonnenberger).Kristaps Dzonsons2009-10-261-17/+13
| | | | | Fixed "-o" residue. Added "-O" to usage() (-o didn't appear there either).
* More updates to mdoc.7.Kristaps Dzonsons2009-10-201-1/+2
|
* Moved output definitions into main.h.Kristaps Dzonsons2009-10-131-1/+2
| | | | Pushed terminal_{mdoc,man} into {mdoc,man}_term.c.
* Clean up consts (noted by Joerg Sonnenberger and Ulrich Sporlein).Kristaps Dzonsons2009-10-131-5/+9
|
* Scaling factor made floating point (as per groff.7) and, e.g., ↵Kristaps Dzonsons2009-10-091-3/+7
| | | | gnu/usr.bin/cvs/man/cvs.1.
* Fixed side-effect of linting (oops).Kristaps Dzonsons2009-10-071-5/+6
|
* Lint-ified.Kristaps Dzonsons2009-10-071-3/+5
|
* Made default string units (-Thtml -mdoc) to use `m' and not `n' scaling ↵Kristaps Dzonsons2009-10-071-3/+10
| | | | | | | (better more than less). Fixed -column widths for -Thtml -mdoc. Fixed left-hand margin padding for -Thtml -mdoc.
* Additions to -Tman -Thtml: all structural components tested & in place.Kristaps Dzonsons2009-10-071-3/+55
| | | | Fitted both -Thtml with handling of arbitrary vertical and horizontal scaling units (see groff(7)). Undocumented until fitted into -Tascii (next release).
* Example style-sheet reflecting modified section/subsection style tags.Kristaps Dzonsons2009-10-041-1/+2
| | | | Added ATTR_ID and so forth to attrs.
* Lintified (noops).Kristaps Dzonsons2009-10-031-6/+4
|
* Fixed mandoc.1 examples (new -Thtml options).Kristaps Dzonsons2009-10-031-3/+96
| | | | | Fixed manuals to use `In', not `Fd'. Moved buf* functions into html.c.
* Added the -oincludes=FMT option.Kristaps Dzonsons2009-10-031-4/+7
| | | | | The `In' handler now decorates with a hyperlink. If no -oman= or -oincludes= is stipulated, no link is printed (but the text is still style-decorated).
* Element tag buffer is now part of struct html.Kristaps Dzonsons2009-10-031-10/+9
| | | | | | | 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).
* Added Bf, Pf, etc. to -Thtml.Kristaps Dzonsons2009-09-241-2/+3
| | | | Fixed Rs in -Tascii to behave properly when not in "SEE ALSO" section.
* Split html.c into html.h, mdoc_html.c, man_html.c.Kristaps Dzonsons2009-09-211-1684/+8
|
* Removed man handling in -Thtml (for now).Kristaps Dzonsons2009-09-211-41/+14
| | | | Added some UTF chars to chars.in.
* Fix height of hard-breaks in -Thtml.Kristaps Dzonsons2009-09-211-4/+10
|
* Consolidation of Pp/sp/br/Lp stuff.Kristaps Dzonsons2009-09-211-20/+29
|