| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
check, we can remove the hard-coded length of all escape patterns. This
frees up a nice chunk of memory.
|
|
|
|
| |
later formatted in html.c.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
| |
ok kristaps@
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
newborn libmandoc.c.
While here, remove superfluous dep of libman on mandoc.c.
|
| |
|
| |
|
|
|
|
| |
to make sharing of TERMP_KEEP easier.
|
| |
|
|
|
|
| |
`Pa', `Pc', `Po', `Pq', `Pp', and `Va'.
|
|
|
|
|
|
|
| |
allow end-of-line to break. This fixes the bad behaviour found when
macros within `Bk' never break.
"Excellent" schwarze@
|
|
|
|
| |
been in the first place (mandoc.h contains system-wide declarations).
|
|
|
|
|
|
|
| |
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).
|
|
|
|
| |
Document `Eo' and `Ec'. Add context-end notes `Ec' and `Fc'.
|
| |
|
|
|
|
| |
PS_NEWPAGE to do the job for us. Noted by Dillo.
|
|
|
|
|
| |
on those parts of the code and text that i have written as Kristaps is.
"fine with me" kristaps@
|
|
|
|
| |
the loops here and there to track down the MDOC_Column arguments.
|
|
|
|
|
| |
print it out for each new page. This also prevents superfluous
printings of the font before the %%Page: comment has been displayed.
|
|
|
|
| |
longer important.
|
|
|
|
| |
until actual text is ready to be displayed.
|
|
|
|
|
| |
Also renamed "psstate" -> "flags" (was wrongly implying some sort of
state machine).
|
|
|
|
| |
margins are 1/9 the length/width.
|
|
|
|
| |
sure header and footer accomodate for said line-height.
|
| |
|
| |
|
|
|
|
|
|
| |
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
|
|
|
|
| |
but it is used in the tree and we should not forget.
|
|
|
|
|
|
|
| |
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@
|
|
|
|
| |
pointer like the other data members, as there's no need to copy it around.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
only a TEXT element consisting of the name.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
|
|
|
| |
The bug was uncovered by SYNOPSIS .Nm as this happened to be the first
block with this particular combination of properties.
Found the hard way by kristaps@ in NetBSD gcc-contrib(1),
fix by me.
|
|
|
|
|
|
|
| |
kristaps@ will do the missing HTML part soon.
"looks nicer" jmc@
"seems perfect to me" sobrado@
"slap it in" kristaps@
|