version 1.19, 2011/05/04 20:43:38 |
version 1.21, 2011/05/12 23:44:51 |
Line 591 pmdoc_Fd(MDOC_ARGS) |
|
Line 591 pmdoc_Fd(MDOC_ARGS) |
|
if ('>' == *end || '"' == *end) |
if ('>' == *end || '"' == *end) |
end--; |
end--; |
|
|
dbt_appendb(key, ksz, start, end - start + 1); |
assert(end >= start); |
|
dbt_appendb(key, ksz, start, (size_t)(end - start + 1)); |
dbt_appendb(key, ksz, "", 1); |
dbt_appendb(key, ksz, "", 1); |
|
|
fl = MANDOC_INCLUDES; |
fl = MANDOC_INCLUDES; |
Line 702 pmdoc_Vt(MDOC_ARGS) |
|
Line 703 pmdoc_Vt(MDOC_ARGS) |
|
if (0 == (sz = strlen(start))) |
if (0 == (sz = strlen(start))) |
return; |
return; |
|
|
if (';' == start[sz - 1]) |
if (';' == start[(int)sz - 1]) |
sz--; |
sz--; |
|
|
if (0 == sz) |
if (0 == sz) |
Line 871 pman_node(MAN_ARGS) |
|
Line 872 pman_node(MAN_ARGS) |
|
/* |
/* |
* Go through a special heuristic dance here. |
* Go through a special heuristic dance here. |
* This is why -man manuals are great! |
* This is why -man manuals are great! |
|
* (I'm being sarcastic: my eyes are bleeding.) |
* Conventionally, one or more manual names are |
* Conventionally, one or more manual names are |
* comma-specified prior to a whitespace, then a |
* comma-specified prior to a whitespace, then a |
* dash, then a description. Try to puzzle out |
* dash, then a description. Try to puzzle out |
Line 908 pman_node(MAN_ARGS) |
|
Line 910 pman_node(MAN_ARGS) |
|
while (' ' == *start) |
while (' ' == *start) |
start++; |
start++; |
|
|
if ('\\' == *start && '-' == *(start + 1)) |
if (0 == strncmp(start, "-", 1)) |
|
start += 1; |
|
else if (0 == strncmp(start, "\\-", 2)) |
start += 2; |
start += 2; |
else if ('-' == *start) |
else if (0 == strncmp(start, "\\(en", 4)) |
start++; |
start += 4; |
|
else if (0 == strncmp(start, "\\(em", 4)) |
|
start += 4; |
|
|
while (' ' == *start) |
while (' ' == *start) |
start++; |
start++; |