version 1.90, 2010/12/06 13:49:02 |
version 1.93, 2011/01/01 10:51:30 |
Line 36 const char *const __man_macronames[MAN_MAX] = { |
|
Line 36 const char *const __man_macronames[MAN_MAX] = { |
|
"IP", "HP", "SM", "SB", |
"IP", "HP", "SM", "SB", |
"BI", "IB", "BR", "RB", |
"BI", "IB", "BR", "RB", |
"R", "B", "I", "IR", |
"R", "B", "I", "IR", |
"RI", "na", "i", "sp", |
"RI", "na", "sp", "nf", |
"nf", "fi", "r", "RE", |
"fi", "RE", "RS", "DT", |
"RS", "DT", "UC", "PD", |
"UC", "PD", "AT", "in", |
"AT", "in" |
"ft" |
}; |
}; |
|
|
const char * const *man_macronames = __man_macronames; |
const char * const *man_macronames = __man_macronames; |
Line 348 man_ptext(struct man *m, int line, char *buf, int offs |
|
Line 348 man_ptext(struct man *m, int line, char *buf, int offs |
|
|
|
if ('\\' == buf[offs] && |
if ('\\' == buf[offs] && |
'.' == buf[offs + 1] && |
'.' == buf[offs + 1] && |
'"' == buf[offs + 2]) |
'"' == buf[offs + 2]) { |
return(man_pmsg(m, line, offs, MANDOCERR_BADCOMMENT)); |
man_pmsg(m, line, offs, MANDOCERR_BADCOMMENT); |
|
return(1); |
|
} |
|
|
/* Literal free-form text whitespace is preserved. */ |
/* Literal free-form text whitespace is preserved. */ |
|
|
Line 381 man_ptext(struct man *m, int line, char *buf, int offs |
|
Line 383 man_ptext(struct man *m, int line, char *buf, int offs |
|
|
|
if (' ' == buf[i - 1] || '\t' == buf[i - 1]) { |
if (' ' == buf[i - 1] || '\t' == buf[i - 1]) { |
if (i > 1 && '\\' != buf[i - 2]) |
if (i > 1 && '\\' != buf[i - 2]) |
if ( ! man_pmsg(m, line, i - 1, MANDOCERR_EOLNSPACE)) |
man_pmsg(m, line, i - 1, MANDOCERR_EOLNSPACE); |
return(0); |
|
|
|
for (--i; i && ' ' == buf[i]; i--) |
for (--i; i && ' ' == buf[i]; i--) |
/* Spin back to non-space. */ ; |
/* Spin back to non-space. */ ; |
Line 488 man_pmacro(struct man *m, int ln, char *buf, int offs) |
|
Line 489 man_pmacro(struct man *m, int ln, char *buf, int offs) |
|
*/ |
*/ |
|
|
if ('\0' == buf[i] && ' ' == buf[i - 1]) |
if ('\0' == buf[i] && ' ' == buf[i - 1]) |
if ( ! man_pmsg(m, ln, i - 1, MANDOCERR_EOLNSPACE)) |
man_pmsg(m, ln, i - 1, MANDOCERR_EOLNSPACE); |
goto err; |
|
|
|
/* |
/* |
* Remove prior ELINE macro, as it's being clobbered by a new |
* Remove prior ELINE macro, as it's being clobbered by a new |