aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/html.c
Commit message (Collapse)AuthorAgeFilesLines
* In-progress move from -T[x]html using DIVs for its lists to using DL,Kristaps Dzonsons2010-12-151-8/+5
| | | | | OL, and UL. Issue raised by Will Backman, solution proposed by schwarze@.
* * need a space before .No even if it starts with a closing delimiterIngo Schwarze2010-10-011-1/+3
| | | | | | | * 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@
* Churny commit to quiet lint. No functional changes.Kristaps Dzonsons2010-09-041-3/+3
|
* Implement a simple, consistent user interface for error handling.Ingo Schwarze2010-08-201-3/+3
| | | | | | | | | | | | | | | | | 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.
* Make `Sm' start no-spacing after the first output word. Fix in bothKristaps Dzonsons2010-07-261-1/+3
| | | | -T[x]html and -T{pdf,ps,ascii}. Reported by Jason McIntyre.
* Add support for `Sm' in -T[x]html -mdoc.Kristaps Dzonsons2010-07-231-2/+6
|
* Accomodate for groff's crappy behaviour wherein an unrecognisedKristaps Dzonsons2010-07-211-4/+10
| | | | | | | | | | | | | single-character escape (and ONLY this type of escape) will map back into itself: "If a backslash is followed by a character that does not constitute a defined escape sequence the backslash is silently ignored and the character maps to itself." (From groff.7.) Found by Jason McIntyre.
* Change chars.in HTML encoding to be a Unicode codepoint (int), which isKristaps Dzonsons2010-07-161-9/+17
| | | | later formatted in html.c.
* correct lots of copyright notices;Ingo Schwarze2010-07-131-2/+2
| | | | ok kristaps@
* Give -T[x]html `Bk -words' capability.Kristaps Dzonsons2010-07-061-5/+19
|
* Brought function arguments and style in ine with term_word() in term.cKristaps Dzonsons2010-07-061-8/+8
| | | | to make sharing of TERMP_KEEP easier.
* Remove "pt" from struct roffsu, as CSS (the only reason it was there) isKristaps Dzonsons2010-06-251-6/+6
| | | | | unclear about which units accept floats/integers, which leads me to assume that it handles either and rounds as appropriate.
* Churn as I finish email address migration kth.se -> bsd.lv.Kristaps Dzonsons2010-06-191-2/+2
|
* Add -Owidth=width option to mandoc -Tascii. Asked for by joerg@ about aKristaps Dzonsons2010-06-071-3/+1
| | | | thousand years ago. Note that this is normalised to >=60.
* Modified version of Ingo Schwarze's patch for hyphen-breaking.Kristaps Dzonsons2010-05-251-16/+15
| | | | | | | Breakable hyphens are cued in the back-ends (with ASCII_HYPH) and acted upon in term.c or ignored in html.c. Also cleaned up XML decl printing (no need for extra vars).
* Fix to auto-closing of LINK tag in -Txhtml (thanks to Daniel Friesel).Kristaps Dzonsons2010-04-121-2/+2
|
* Removed pipe from front-end ("typographic") recognition as punctuation ↵Kristaps Dzonsons2010-04-081-3/+5
| | | | (noted by Ingo Schwarze).
* 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
|