version 1.18, 2009/02/27 10:55:16 |
version 1.21, 2009/02/28 21:31:13 |
Line 112 main(int argc, char *argv[]) |
|
Line 112 main(int argc, char *argv[]) |
|
if (NULL == (mdoc = mmain_mdoc(p))) |
if (NULL == (mdoc = mmain_mdoc(p))) |
mmain_exit(p, 1); |
mmain_exit(p, 1); |
|
|
termp.maxrmargin = 80; /* XXX */ |
termp.maxrmargin = 78; /* XXX */ |
termp.rmargin = termp.maxrmargin; |
termp.rmargin = termp.maxrmargin; |
termp.maxcols = 1024; |
termp.maxcols = 1024; |
termp.offset = termp.col = 0; |
termp.offset = termp.col = 0; |
Line 465 pescape(struct termp *p, const char *word, size_t *i, |
|
Line 465 pescape(struct termp *p, const char *word, size_t *i, |
|
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case ('.'): |
case ('.'): |
chara(p, word[*i]); |
chara(p, word[*i]); |
|
break; |
|
case ('e'): |
|
chara(p, '\\'); |
|
break; |
default: |
default: |
break; |
break; |
} |
} |
Line 554 word(struct termp *p, const char *word) |
|
Line 558 word(struct termp *p, const char *word) |
|
if ( ! xisspace(word[i])) { |
if ( ! xisspace(word[i])) { |
j++; |
j++; |
continue; |
continue; |
|
} |
|
|
|
/* Escaped spaces don't delimit... */ |
|
if (i > 0 && xisspace(word[i]) && '\\' == word[i - 1]) { |
|
j++; |
|
continue; |
} |
} |
|
|
if (0 == j) |
if (0 == j) |
continue; |
continue; |
assert(i >= j); |
assert(i >= j); |