Changeset View
Changeset View
Standalone View
Standalone View
contrib/mandoc/mdoc.c
| Show First 20 Lines • Show All 159 Lines • ▼ Show 20 Lines | |||||
| /* | /* | ||||
| * Parse free-form text, that is, a line that does not begin with the | * Parse free-form text, that is, a line that does not begin with the | ||||
| * control character. | * control character. | ||||
| */ | */ | ||||
| static int | static int | ||||
| mdoc_ptext(struct roff_man *mdoc, int line, char *buf, int offs) | mdoc_ptext(struct roff_man *mdoc, int line, char *buf, int offs) | ||||
| { | { | ||||
| struct roff_node *n; | struct roff_node *n; | ||||
| const char *cp, *sp; | char *c, *ws, *end, *cp, *sp; | ||||
| char *c, *ws, *end; | |||||
| n = mdoc->last; | n = mdoc->last; | ||||
| /* | /* | ||||
| * If a column list contains plain text, assume an implicit item | * If a column list contains plain text, assume an implicit item | ||||
| * macro. This can happen one or more times at the beginning | * macro. This can happen one or more times at the beginning | ||||
| * of such a list, intermixed with non-It mdoc macros and with | * of such a list, intermixed with non-It mdoc macros and with | ||||
| * nodes generated on the roff level, for example by tbl. | * nodes generated on the roff level, for example by tbl. | ||||
| ▲ Show 20 Lines • Show All 256 Lines • Show Last 20 Lines | |||||