Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Clean up mandoc_special() (in order later to catch \m). It also flags | 2010-07-18 | 2 | -153/+66 | ||
| | | | | | | several syntactic errors that weren't caught before. Also un-puke chars.c on zero-length \[]. | |||||
* | Avoid letter-by-letter encoding by using strcspn() in term_word(). | 2010-07-17 | 1 | -8/+7 | ||
| | ||||||
* | By letting strncmp() do its job and not helping it with a prior length | 2010-07-17 | 2 | -381/+380 | ||
| | | | | | check, we can remove the hard-coded length of all escape patterns. This frees up a nice chunk of memory. | |||||
* | Change chars.in HTML encoding to be a Unicode codepoint (int), which is | 2010-07-16 | 6 | -411/+466 | ||
| | | | | later formatted in html.c. | |||||
* | Removed completed TODO. | 2010-07-16 | 1 | -4/+0 | ||
| | ||||||
* | Fixed dquote to be \*q. | 2010-07-16 | 1 | -4/+4 | ||
| | ||||||
* | Fix which escapes are used to format \". | 2010-07-16 | 1 | -4/+4 | ||
| | ||||||
* | After .Sm on, spacing ought to restart right away, before the next token, | 2010-07-16 | 1 | -3/+5 | ||
| | | | | | | | and not with a delay, after the next token. But be careful not to cause leading white space at the beginning of a line or column. In OpenBSD, improves chmod(1), ksh(1), tar(1), ps(1) and probably many more. ok kristaps@ and tested by jmc@ and sobrado@ | |||||
* | document .Sm; prodded by kristaps@ | 2010-07-15 | 1 | -2/+14 | ||
| | ||||||
* | correct lots of copyright notices; | 2010-07-13 | 17 | -36/+35 | ||
| | | | | ok kristaps@ | |||||
* | Pre-tag checkin of release bits and shortlist.VERSION_1_10_4 | 2010-07-11 | 2 | -3/+24 | ||
| | ||||||
* | remove three issues fixed near the end of the c2k10 hackathon | 2010-07-11 | 1 | -17/+0 | ||
| | ||||||
* | Re-constitution of `ds' symbol processing. First, push the | 2010-07-07 | 18 | -193/+157 | ||
| | | | | | | | | | 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. | |||||
* | Revert Makefile to using mandoc.c instead of libmandoc.c. Remove | 2010-07-06 | 2 | -401/+5 | ||
| | | | | | | newborn libmandoc.c. While here, remove superfluous dep of libman on mandoc.c. | |||||
* | Resurrect mandoc.c after bogus removal (was: libmandoc.c). | 2010-07-06 | 1 | -0/+396 | ||
| | ||||||
* | Give -T[x]html `Bk -words' capability. | 2010-07-06 | 3 | -9/+71 | ||
| | ||||||
* | Brought function arguments and style in ine with term_word() in term.c | 2010-07-06 | 1 | -8/+8 | ||
| | | | | to make sharing of TERMP_KEEP easier. | |||||
* | Clarified `Bk' operation in mdoc.7. | 2010-07-06 | 1 | -11/+13 | ||
| | ||||||
* | Documented `En', `Es', `Hf', `Ic', `Lp', `Nd', `No', `Oc', `Oo', `Op', | 2010-07-06 | 1 | -2/+111 | ||
| | | | | `Pa', `Pc', `Po', `Pq', `Pp', and `Va'. | |||||
* | Proper `Bk -words' support: only suppress breaks within a line, but | 2010-07-06 | 1 | -1/+18 | ||
| | | | | | | | allow end-of-line to break. This fixes the bad behaviour found when macros within `Bk' never break. "Excellent" schwarze@ | |||||
* | Move register information into mandoc.h, which is where it should have | 2010-07-05 | 2 | -27/+39 | ||
| | | | | been in the first place (mandoc.h contains system-wide declarations). | |||||
* | Renamed mandoc.c to libmandoc.c. This is in the efforts of getting a | 2010-07-05 | 2 | -6/+6 | ||
| | | | | | | | cleaner namespace for functions across the entire system (mandoc.h: getting parsed-string values, or declarations necessary for the AST data), and compiler functions (libmandoc.h: back-end functions and declarations). | |||||
* | Manual clean-ups. Add syntax message for `Bd', `Bk', and `Bl'. | 2010-07-05 | 1 | -17/+58 | ||
| | | | | Document `Eo' and `Ec'. Add context-end notes `Ec' and `Fc'. | |||||
* | Remove caching TODO: this has been committed. | 2010-07-05 | 1 | -5/+0 | ||
| | ||||||
* | Suppress duplicate "Page: 1 1" -Tps printing and instead relay on | 2010-07-05 | 1 | -6/+2 | ||
| | | | | PS_NEWPAGE to do the job for us. Noted by Dillo. | |||||
* | Assert my copyright, making it explicit that i'm granting the same license | 2010-07-04 | 11 | -22/+33 | ||
| | | | | | on those parts of the code and text that i have written as Kristaps is. "fine with me" kristaps@ | |||||
* | Cache column sizes and char pointer into mdoc_bl. Finally get rid of | 2010-07-04 | 5 | -59/+29 | ||
| | | | | the loops here and there to track down the MDOC_Column arguments. | |||||
* | gv(1) doesn't remember the last set font when displaying new pages, so | 2010-07-04 | 1 | -7/+25 | ||
| | | | | | print it out for each new page. This also prevents superfluous printings of the font before the %%Page: comment has been displayed. | |||||
* | Set line-height to be 1.4em. Removed check for minimum margins that are no | 2010-07-04 | 2 | -20/+8 | ||
| | | | | longer important. | |||||
* | Suppress printing blank eof pages in -Tps. Delay printing of Page: | 2010-07-04 | 1 | -10/+14 | ||
| | | | | until actual text is ready to be displayed. | |||||
* | Suppress printing of newlines/space at start of new -Tps page. | 2010-07-04 | 2 | -18/+35 | ||
| | | | | | Also renamed "psstate" -> "flags" (was wrongly implying some sort of state machine). | |||||
* | Backed out margin calculations in favour of much simpler rule of thumb: | 2010-07-04 | 2 | -21/+14 | ||
| | | | | margins are 1/9 the length/width. | |||||
* | Auto-margins. Documented in mandoc.1. Also bumped line-height and made | 2010-07-04 | 2 | -16/+46 | ||
| | | | | sure header and footer accomodate for said line-height. | |||||
* | Allow empty `Fo' to get by without an assertion. | 2010-07-03 | 1 | -2/+4 | ||
| | ||||||
* | Note to myself on what I need to do regarding inter-library functions. | 2010-07-03 | 1 | -0/+9 | ||
| | ||||||
* | Rudimentary implementation of user-defined strings; | 2010-07-03 | 4 | -6/+197 | ||
| | | | | | | no time for more refinement right now. In particular, fixes terminfo(3) and mdoc.samples(7). ok kristaps@, who will add the HTML frontend bits | |||||
* | The roff escape function "\s" is definitely not urgent, | 2010-07-03 | 1 | -0/+9 | ||
| | | | | but it is used in the tree and we should not forget. | |||||
* | Not only for -tag lists, but for -hang, -ohang, -inset, -diag, | 2010-07-02 | 1 | -7/+4 | ||
| | | | | | | | and -item list as well, empty bodies are OK, they do not even warrant a warning, much less the error they were throwing. According to kristaps, joerg@ also brought this up some time ago. ok kristaps@ jmc@ | |||||
* | Cached `An' arguments in struct mdoc_an. Note that this isn't a | 2010-07-02 | 3 | -32/+35 | ||
| | | | | pointer like the other data members, as there's no need to copy it around. | |||||
* | Fix: was checking HEAD for arguments. | 2010-07-02 | 1 | -5/+7 | ||
| | ||||||
* | Add documentation for Bf/Ef. | 2010-07-02 | 1 | -2/+40 | ||
| | ||||||
* | Stash `Bf' parameters into struct mdoc_bf. | 2010-07-02 | 8 | -78/+107 | ||
| | ||||||
* | Lint fixes. | 2010-07-02 | 4 | -8/+12 | ||
| | ||||||
* | Lint tweak. | 2010-07-02 | 1 | -1/+2 | ||
| | ||||||
* | Added TODO to sanitise `Nm' blocks such that HEAD optionally contains | 2010-07-02 | 1 | -0/+4 | ||
| | | | | only a TEXT element consisting of the name. | |||||
* | Implemented -Thtml bits for handling `Nm' blocks. | 2010-07-02 | 1 | -9/+62 | ||
| | ||||||
* | Remove my own dumb FIXME and mark a static function defn as static. | 2010-07-01 | 1 | -4/+3 | ||
| | ||||||
* | Make struct_bl and struct_bd into pointers. This removes the need to do | 2010-07-01 | 7 | -125/+139 | ||
| | | | | | | | | | | | copying on internals after modification. Even more importantly, if an ENDBODY token is provided, it would have been impossible for post-change copying of the data to take place in the BLOCK. This allows it to happen by dint of pointers. Also did some bikeshedding in mdoc_term.c: checking against enum type and explicitly casting to the "post" function to void. This is for my own readability. | |||||
* | In the mdoc(7) parser, inspect roff registers early such that all parts | 2010-07-01 | 4 | -19/+38 | ||
| | | | | | | | | | | | | of the parser can use the resulting cues. In particular, this allows to use .nr nS to force SYNOPSIS-style .Nm indentation outside the SYNOPSIS as needed by ifconfig(8). To actually make this useable, .Pp must rewind .Nm, or the rest of the section would end up indented. Implement a quick hack for now, a generic solution can be designed later. ok kristaps@ and tested by sobrado@ | |||||
* | Prevent validator from puking on ENDBODY `Bl' nodes. | 2010-07-01 | 1 | -1/+3 | ||
| |