Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Handle literal tab characters both in literal context (.Bd -literal) | 2010-05-24 | 1 | -3/+23 | |
| | | | | | | | | and outside. In literal context, tab stops are at each eigth column; outside, they are at each fifth column. from OpenBSD mdoc_term.c rev. 1.75; "commit" kristaps@ | ||||
* | Enable the unified error/warning enumeration in mandoc.h that's | 2010-05-17 | 1 | -1/+2 | |
| | | | | | | | | | | | 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. | ||||
* | The function term_flushln() had effectively forked in OpenBSD. | 2010-05-17 | 1 | -45/+42 | |
| | | | | | | | | | | | | | | | | This is the bsd.lv part of the main step to bring it back in sync. At the same time, this prevents trailing whitespace in the output: We delay writing blanks until we are sure printable characters follow. This is achieved by * remembering the end of the word instead of its length * and not using vbl any longer for the control of line breaking * such that vbl can sum up all kinds of white space * before writing a word, printing all the blanks collected in vbl * within the word, adding NBSP chars to vbl, then continuing with the word * after the word, adding blanks to vbl, then starting the next word "looks good" kristaps@ | ||||
* | sync to OpenBSD: | 2010-05-16 | 1 | -2/+2 | |
| | | | | | | introduce a #define to get rid of the magic number describing the ASCII character used to represent non-breaking space; ok kristaps | ||||
* | Make the output width an option for ascii_alloc and use that to compute | 2010-05-15 | 1 | -5/+9 | |
| | | | | the default margin. Hard-code 80 chars/line for now. | ||||
* | Tiny EOS patch. Back-end cues front-end through flag. Front-end cues ↵ | 2010-05-12 | 1 | -2/+7 | |
| | | | | output engine with flag. | ||||
* | Backed out break-at-hyphen changes. | 2010-05-07 | 1 | -39/+4 | |
| | |||||
* | Removed pipe from front-end ("typographic") recognition as punctuation ↵ | 2010-04-08 | 1 | -3/+5 | |
| | | | | (noted by Ingo Schwarze). | ||||
* | Removed erroneous `{' and `}' as punctuation (see mdoc.samples "General ↵ | 2010-04-03 | 1 | -22/+53 | |
| | | | | | | 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 two very subtle bugs in retaining overstep and maxrmargin widths ↵ | 2010-03-23 | 1 | -16/+14 | |
| | | | | between parse sequences. | ||||
* | Big check-in of compatibility layer. This should work on most major ↵ | 2010-01-01 | 1 | -1/+5 | |
| | | | | architectures. Thanks to Joerg Sonnenberger. | ||||
* | Fixed \c support for all input and output modes (documented in mandoc_char.7). | 2009-11-12 | 1 | -1/+4 | |
| | |||||
* | FreeBSD sys/types inclusion fixed. | 2009-11-12 | 1 | -3/+5 | |
| | |||||
* | Basically re-wrote -Tascii font handling: instead of incrementers for | 2009-11-12 | 1 | -88/+148 | |
| | | | | | | | | | 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. | 2009-11-07 | 1 | -202/+50 | |
| | |||||
* | -Tascii now correctly ignores \s clauses. | 2009-11-06 | 1 | -12/+90 | |
| | |||||
* | Correct support for `\fX' font modes in -Tascii. | 2009-11-05 | 1 | -8/+22 | |
| | |||||
* | Added functionality of -Tascii non-breaking `\~' space. | 2009-11-05 | 1 | -2/+7 | |
| | |||||
* | Using perror() instead of fprintf for failure from library functions. | 2009-10-31 | 1 | -3/+3 | |
| | |||||
* | More lint fixes. | 2009-10-30 | 1 | -4/+5 | |
| | | | | Removed err.h from inclusions (less main.c--still in progress). | ||||
* | Lint fixes. | 2009-10-30 | 1 | -3/+5 | |
| | | | | Made realloc puke with fprintf. | ||||
* | Continued safe handling of allocations. | 2009-10-30 | 1 | -3/+6 | |
| | |||||
* | Removed superfluous memset (thanks Joerg Sonnenberger). | 2009-10-28 | 1 | -3/+2 | |
| | |||||
* | bzero() -> memset() (noted by Joerg Sonnenberger). | 2009-10-27 | 1 | -3/+9 | |
| | |||||
* | Merged Ingo's comments on term_flushln() variable names. | 2009-10-27 | 1 | -14/+14 | |
| | | | | 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). | 2009-10-26 | 1 | -1/+2 | |
| | |||||
* | Lint fix.VERSION_1_9_10 | 2009-10-26 | 1 | -2/+3 | |
| | |||||
* | Fixed overstep patch. | 2009-10-26 | 1 | -2/+3 | |
| | |||||
* | Removed need for superfluous `os' value in overstep calculation (thanks Ingo ↵ | 2009-10-24 | 1 | -8/+5 | |
| | | | | Schwarze). | ||||
* | Fixed order of printing backspace-encoding for terms that are both bold and ↵ | 2009-10-22 | 1 | -5/+5 | |
| | | | | underlined (noted by Joerg Sonnenberger). | ||||
* | More fixes to scaling-width multipliers (which, just to make my life ↵ | 2009-10-19 | 1 | -5/+8 | |
| | | | | 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 ↵ | 2009-10-18 | 1 | -32/+24 | |
| | | | | 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. | 2009-10-18 | 1 | -1/+84 | |
| | | | | Terminal scaling backend pushed into term.c. | ||||
* | Moved output definitions into main.h. | 2009-10-13 | 1 | -32/+2 | |
| | | | | 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. | 2009-10-10 | 1 | -2/+8 | |
| | | | | Noted similarity of HP/TP and -hang/-tag in mandoc.1. | ||||
* | All special characters sync'd with groff, both -Thtml and -Tascii. | 2009-09-23 | 1 | -1/+4 | |
| | | | | Re-added text links to index.sgml (just for show). | ||||
* | Fixed memory leak on close. | 2009-09-20 | 1 | -2/+2 | |
| | |||||
* | ascii_xxx -> chars_xxx (intended to hold more than just ascii encoding). | 2009-09-17 | 1 | -6/+7 | |
| | | | | More html work. | ||||
* | Put closedelim and opendelim right in term_word() (unnecessary extra function). | 2009-09-16 | 1 | -65/+41 | |
| | |||||
* | Made tree/term/out() functions return void. | 2009-09-16 | 1 | -7/+7 | |
| | | | | 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 ↵ | 2009-09-15 | 1 | -9/+9 | |
| | | | | | | increments. Cleaned up confusing behaviour of p->flags. | ||||
* | Fix in newline. | 2009-07-28 | 1 | -4/+9 | |
| | | | | Correct printing of N-char predefined/special strings. | ||||
* | Re-ordered ascii.in looking for dupes. | 2009-07-27 | 1 | -3/+17 | |
| | | | | | 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. | 2009-07-27 | 1 | -48/+33 | |
| | | | | | 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 ↵ | 2009-07-27 | 1 | -6/+25 | |
| | | | | strings and escape characters, respectively. | ||||
* | Text tokens with leading whitespace (like indented blocks in `Bd -literal') ↵ | 2009-07-24 | 1 | -2/+2 | |
| | | | | are printed correctly. | ||||
* | Lintified term_flushln() (type mismatches). | 2009-07-23 | 1 | -13/+24 | |
| | |||||
* | Bringing spacing more in line with groff, patches from schwarze@openbsd.org. ↵ | 2009-07-21 | 1 | -35/+38 | |
| | | | | Pre-testing. | ||||
* | Fixed and cleaned up "phrase" handling (`Bl -column' columns). | 2009-07-19 | 1 | -2/+5 | |
| | | | | Found strange newline bug in -diag handling (and others?). | ||||
* | Subtle fixes correcting vis count with erroneously-decorated whitespace. | 2009-07-16 | 1 | -5/+5 | |
| |