summaryrefslogtreecommitdiffstats
path: root/term.c
Commit message (Collapse)AuthorAgeFilesLines
...
* FreeBSD sys/types inclusion fixed.Kristaps Dzonsons2009-11-121-2/+4
|
* Basically re-wrote -Tascii font handling: instead of incrementers forKristaps Dzonsons2009-11-121-87/+147
| | | | | | | | | bold and underline, we use a stack (no cascading, no double-font-mode). Font modes with \f only affect the current stack point, as documented in mdoc.7 and man.7. While -mdoc stacks fonts with embedded macros, -man replaces them (the stack is always size 1). This works for all invocations in supported systems' manual corpora to date. It doesn't support groff's insanity with line-scoped \f as documented in mdoc.7.
* Hooked up -Tascii to a2roffdeco backend.Kristaps Dzonsons2009-11-071-201/+49
|
* -Tascii now correctly ignores \s clauses.Kristaps Dzonsons2009-11-061-11/+89
|
* Correct support for `\fX' font modes in -Tascii.Kristaps Dzonsons2009-11-051-7/+21
|
* Added functionality of -Tascii non-breaking `\~' space.Kristaps Dzonsons2009-11-051-1/+6
|
* Using perror() instead of fprintf for failure from library functions.Kristaps Dzonsons2009-10-311-2/+2
|
* More lint fixes.Kristaps Dzonsons2009-10-301-3/+4
| | | | Removed err.h from inclusions (less main.c--still in progress).
* Lint fixes.Kristaps Dzonsons2009-10-301-2/+4
| | | | Made realloc puke with fprintf.
* Continued safe handling of allocations.Kristaps Dzonsons2009-10-301-2/+5
|
* Removed superfluous memset (thanks Joerg Sonnenberger).Kristaps Dzonsons2009-10-281-2/+1
|
* bzero() -> memset() (noted by Joerg Sonnenberger).Kristaps Dzonsons2009-10-271-2/+8
|
* Merged Ingo's comments on term_flushln() variable names.Kristaps Dzonsons2009-10-271-13/+13
| | | | Fixed assertion (this needs more consideration) when an overstep line is exactly as long as the rmargin.
* Added time.h to various files for FreeBSD compilation (thanks Ulrich Sporlein).Kristaps Dzonsons2009-10-261-0/+1
|
* Lint fix.VERSION.1.9.10Kristaps Dzonsons2009-10-261-1/+2
|
* Fixed overstep patch.Kristaps Dzonsons2009-10-261-1/+2
|
* Removed need for superfluous `os' value in overstep calculation (thanks Ingo ↵Kristaps Dzonsons2009-10-241-7/+4
| | | | Schwarze).
* Fixed order of printing backspace-encoding for terms that are both bold and ↵Kristaps Dzonsons2009-10-221-4/+4
| | | | underlined (noted by Joerg Sonnenberger).
* More fixes to scaling-width multipliers (which, just to make my life ↵Kristaps Dzonsons2009-10-191-4/+7
| | | | difficult, differ not only between -mdoc and -man, but between various invocation, e.g., -offset and -width).
* Made sure devices and formats recognise that -man and -mdoc have different ↵Kristaps Dzonsons2009-10-181-31/+23
| | | | 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.
* Arbitrary horizontal and vertical scaling widths now handled by -mdoc -Tascii.Kristaps Dzonsons2009-10-181-0/+83
| | | | Terminal scaling backend pushed into term.c.
* Moved output definitions into main.h.Kristaps Dzonsons2009-10-131-31/+1
| | | | Pushed terminal_{mdoc,man} into {mdoc,man}_term.c.
* Fix hang lists in -Tascii -Tmdoc, which seem to have been broken since ~1.8.x.Kristaps Dzonsons2009-10-101-1/+7
| | | | Noted similarity of HP/TP and -hang/-tag in mandoc.1.
* All special characters sync'd with groff, both -Thtml and -Tascii.Kristaps Dzonsons2009-09-231-0/+3
| | | | Re-added text links to index.sgml (just for show).
* Fixed memory leak on close.Kristaps Dzonsons2009-09-201-1/+1
|
* ascii_xxx -> chars_xxx (intended to hold more than just ascii encoding).Kristaps Dzonsons2009-09-171-5/+6
| | | | More html work.
* Put closedelim and opendelim right in term_word() (unnecessary extra function).Kristaps Dzonsons2009-09-161-64/+40
|
* Made tree/term/out() functions return void.Kristaps Dzonsons2009-09-161-6/+6
| | | | Put err() functions back into front-ends (no use making it needlessly complex).
* Removed TERMP_BOLD, TERMP_UNDER, TERMP_STYLE in favour of recursive-friendly ↵Kristaps Dzonsons2009-09-151-8/+8
| | | | | | increments. Cleaned up confusing behaviour of p->flags.
* Fix in newline.Kristaps Dzonsons2009-07-281-3/+8
| | | | Correct printing of N-char predefined/special strings.
* Re-ordered ascii.in looking for dupes.Kristaps Dzonsons2009-07-271-2/+16
| | | | | Added `vim -q' tip to manuals.7 (thanks uqs@sporlein.net). ifdef'd production of missing specials/predefines.
* Clarified special chars/predefined chars in mandoc_char.7.Kristaps Dzonsons2009-07-271-47/+32
| | | | | Cleaned up escape section in man.7, mdoc.7. Cleaned up function names in term.c.
* Correct handling of \*(xx, \*[xxx], \*x versus \x, \(xx, \([xxx]: predefined ↵Kristaps Dzonsons2009-07-271-5/+24
| | | | strings and escape characters, respectively.
* Text tokens with leading whitespace (like indented blocks in `Bd -literal') ↵Kristaps Dzonsons2009-07-241-1/+1
| | | | are printed correctly.
* Lintified term_flushln() (type mismatches).Kristaps Dzonsons2009-07-231-12/+23
|
* Bringing spacing more in line with groff, patches from schwarze@openbsd.org. ↵Kristaps Dzonsons2009-07-211-34/+37
| | | | Pre-testing.
* Fixed and cleaned up "phrase" handling (`Bl -column' columns).Kristaps Dzonsons2009-07-191-1/+4
| | | | Found strange newline bug in -diag handling (and others?).
* Subtle fixes correcting vis count with erroneously-decorated whitespace.Kristaps Dzonsons2009-07-161-4/+4
|
* Fix in nospace following close-delimiter.Kristaps Dzonsons2009-07-161-2/+3
|
* Removed assertion (disregarded blank literal lines).Kristaps Dzonsons2009-07-151-1/+0
|
* Removed term.c break-up of tokens (happens in libmdoc).Kristaps Dzonsons2009-07-151-88/+62
| | | | Removed costly, redundant calculations of string length (in-line printing).
* Cleaned up arg_width and arg_column functions.Kristaps Dzonsons2009-07-141-1/+1
| | | | | Added XXn and XXm support to -offset (not documented in mdoc.samples, but used in mdoc.samples!). Lint warnings fixed.
* Support for TERMP_HANG in flushln(): -hang lists.Kristaps Dzonsons2009-07-141-5/+18
|
* Lint fixes.VERSION.1.7.20Kristaps Dzonsons2009-06-221-1/+2
| | | | Version up.
* Noted .Cd tabs-ok issue (will fix later).Kristaps Dzonsons2009-06-221-0/+3
| | | | Added single space to -diag lists.
* Added "Spacing" part of "Punctuation and Spacing" in mandoc.1 manual.Kristaps Dzonsons2009-06-221-22/+24
| | | | | | | Fixed `Ds' meta-macro default width. Fixed -width and -offset "indent", "indent-two", and "left" widths. Fixed -width and -offset literal-word and numeric widths. Fixed off-by-one errors in whitespace output (schwarze@openbsd.org).
* Reverted max column width 80 -> 78 (schwarze@openbsd.org).Kristaps Dzonsons2009-06-221-1/+1
|
* Special characters, e.g. \(ae, are now correctly rendered in the current ↵Kristaps Dzonsons2009-06-171-52/+26
| | | | font decoration.
* Clean up validation of field widths.Kristaps Dzonsons2009-06-111-5/+4
| | | | | | Pushed field-width warn/error into warn/error routine. Removed superfluous space at output eoln. Fixed overzealous line break in lists.
* Fix space-before-newline (inspired by schwarze@openbsd.org).Kristaps Dzonsons2009-06-111-5/+4
|