version 1.44, 2015/02/14 12:47:09 |
version 1.46, 2015/02/14 15:34:39 |
|
|
break; |
break; |
} |
} |
switch (buf[i]) { |
switch (buf[i]) { |
|
case '\t': |
|
/* FALLTHROUGH */ |
case ' ': |
case ' ': |
if ( ! ifa) |
if ( ! ifa) |
ifo = i; |
ifo = i; |
|
|
printf(".Fa \"%s\"\n", buf + ifa); |
printf(".Fa \"%s\"\n", buf + ifa); |
if (cp == NULL) |
if (cp == NULL) |
break; |
break; |
while (*cp == ' ') |
while (*cp == ' ' || *cp == '\t') |
cp++; |
cp++; |
ifa = cp - buf; |
ifa = cp - buf; |
} |
} |
Line 1583 dofile(const struct args *args, const char *fname, |
|
Line 1585 dofile(const struct args *args, const char *fname, |
|
{ |
{ |
char datebuf[64]; |
char datebuf[64]; |
struct state st; |
struct state st; |
const char *fbase, *fext, *section, *date; |
const char *fbase, *fext, *section, *date, *format; |
char *title, *cp; |
char *title, *cp; |
size_t sup, end, i, cur = 0; |
size_t sup, end, i, cur = 0; |
|
|
Line 1628 dofile(const struct args *args, const char *fname, |
|
Line 1630 dofile(const struct args *args, const char *fname, |
|
|
|
/* Date. Or the given "tm" if not supplied. */ |
/* Date. Or the given "tm" if not supplied. */ |
|
|
if (NULL == (date = args->date)) { |
date = args->date; |
strftime(datebuf, sizeof(datebuf), "%B %d, %Y", tm); |
format = (NULL == date) ? "%B %d, %Y" : |
|
strcmp(date, "Mdocdate") ? NULL : "$Mdocdate$"; |
|
|
|
if (NULL != format) { |
|
strftime(datebuf, sizeof(datebuf), format, tm); |
date = datebuf; |
date = datebuf; |
} |
} |
|
|