version 1.20, 2014/03/30 16:57:06 |
version 1.21, 2014/03/30 17:10:50 |
Line 87 static const char *attrvals[ATTRVAL__MAX] = { |
|
Line 87 static const char *attrvals[ATTRVAL__MAX] = { |
|
|
|
static const struct node nodes[NODE__MAX] = { |
static const struct node nodes[NODE__MAX] = { |
{ NULL, 0 }, |
{ NULL, 0 }, |
|
{ "acronym", 0 }, |
{ "arg", 0 }, |
{ "arg", 0 }, |
{ "citerefentry", NODE_IGNTEXT }, |
{ "citerefentry", NODE_IGNTEXT }, |
{ "cmdsynopsis", NODE_IGNTEXT }, |
{ "cmdsynopsis", NODE_IGNTEXT }, |
Line 94 static const struct node nodes[NODE__MAX] = { |
|
Line 95 static const struct node nodes[NODE__MAX] = { |
|
{ "command", 0 }, |
{ "command", 0 }, |
{ "date", 0 }, |
{ "date", 0 }, |
{ "emphasis", 0 }, |
{ "emphasis", 0 }, |
|
{ "envar", 0 }, |
{ "filename", 0 }, |
{ "filename", 0 }, |
{ "funcdef", 0 }, |
{ "funcdef", 0 }, |
{ "funcprototype", NODE_IGNTEXT }, |
{ "funcprototype", NODE_IGNTEXT }, |
Line 106 static const struct node nodes[NODE__MAX] = { |
|
Line 108 static const struct node nodes[NODE__MAX] = { |
|
{ "literal", 0 }, |
{ "literal", 0 }, |
{ "manvolnum", 0 }, |
{ "manvolnum", 0 }, |
{ "option", 0 }, |
{ "option", 0 }, |
|
{ "orderedlist", NODE_IGNTEXT }, |
{ "para", 0 }, |
{ "para", 0 }, |
{ "paramdef", 0 }, |
{ "paramdef", 0 }, |
{ "parameter", 0 }, |
{ "parameter", 0 }, |
Line 858 pnode_printitemizedlist(struct parse *p, struct pnode |
|
Line 861 pnode_printitemizedlist(struct parse *p, struct pnode |
|
} |
} |
|
|
assert(p->newln); |
assert(p->newln); |
puts(".Bl -item"); |
|
|
if (NODE_ORDEREDLIST == pn->node) |
|
puts(".Bl -enum"); |
|
else |
|
puts(".Bl -item"); |
|
|
TAILQ_FOREACH(pp, &pn->childq, child) { |
TAILQ_FOREACH(pp, &pn->childq, child) { |
assert(p->newln); |
assert(p->newln); |
puts(".It"); |
puts(".It"); |
Line 936 pnode_print(struct parse *p, struct pnode *pn) |
|
Line 944 pnode_print(struct parse *p, struct pnode *pn) |
|
pnode_printmopen(p); |
pnode_printmopen(p); |
fputs("Em", stdout); |
fputs("Em", stdout); |
break; |
break; |
|
case (NODE_ENVAR): |
|
pnode_printmopen(p); |
|
fputs("Ev", stdout); |
|
break; |
case (NODE_FILENAME): |
case (NODE_FILENAME): |
pnode_printmopen(p); |
pnode_printmopen(p); |
fputs("Pa", stdout); |
fputs("Pa", stdout); |
Line 954 pnode_print(struct parse *p, struct pnode *pn) |
|
Line 966 pnode_print(struct parse *p, struct pnode *pn) |
|
fputs("Fd", stdout); |
fputs("Fd", stdout); |
break; |
break; |
case (NODE_ITEMIZEDLIST): |
case (NODE_ITEMIZEDLIST): |
|
/* FALLTHROUGH */ |
|
case (NODE_ORDEREDLIST): |
assert(p->newln); |
assert(p->newln); |
pnode_printitemizedlist(p, pn); |
pnode_printitemizedlist(p, pn); |
break; |
break; |
Line 1091 pnode_print(struct parse *p, struct pnode *pn) |
|
Line 1105 pnode_print(struct parse *p, struct pnode *pn) |
|
case (NODE_CODE): |
case (NODE_CODE): |
case (NODE_COMMAND): |
case (NODE_COMMAND): |
case (NODE_EMPHASIS): |
case (NODE_EMPHASIS): |
|
case (NODE_ENVAR): |
case (NODE_FILENAME): |
case (NODE_FILENAME): |
case (NODE_FUNCTION): |
case (NODE_FUNCTION): |
case (NODE_FUNCSYNOPSISINFO): |
case (NODE_FUNCSYNOPSISINFO): |