version 1.137, 2010/05/24 13:39:47 |
version 1.139, 2010/05/26 09:35:35 |
Line 560 mdoc_ptext(struct mdoc *m, int line, char *buf, int of |
|
Line 560 mdoc_ptext(struct mdoc *m, int line, char *buf, int of |
|
* Search for the beginning of unescaped trailing whitespace (ws) |
* Search for the beginning of unescaped trailing whitespace (ws) |
* and for the first character not to be output (end). |
* and for the first character not to be output (end). |
*/ |
*/ |
|
|
|
/* FIXME: replace with strcspn(). */ |
ws = NULL; |
ws = NULL; |
for (c = end = buf + offs; *c; c++) { |
for (c = end = buf + offs; *c; c++) { |
switch (*c) { |
switch (*c) { |
|
case '-': |
|
if (mandoc_hyph(buf + offs, c)) |
|
*c = ASCII_HYPH; |
|
break; |
case ' ': |
case ' ': |
if (NULL == ws) |
if (NULL == ws) |
ws = c; |
ws = c; |