Tweaks to the output of <?theme author?> and <?theme version?>

This commit is contained in:
david parsons
2008-01-15 01:06:18 -08:00
parent 0f969b25b8
commit 8a2ef658d5
+4 -2
View File
@@ -32,6 +32,7 @@ char *pgm = "theme";
char *output = 0;
char *source = 0;
char *root = 0;
struct passwd *me = 0;
#ifndef HAVE_BASENAME
char *
@@ -216,9 +217,11 @@ spin(FILE *template, MMIOT doc, FILE *output)
else if ( thesame(p, "author?>") ) {
if (( h = mkd_doc_author(doc) ))
mkd_text(h, strlen(h), stdout, 0);
else if ( me )
mkd_text(me->pw_gecos, strlen(me->pw_gecos), stdout, 0);
}
else if ( thesame(p, "version?>") ) {
mkd_text(version, strlen(version), stdout, 0);
fwrite(version, strlen(version), 1, stdout);
}
else if ( thesame(p, "body?>") ) {
mkd_generatehtml(doc,stdout);
@@ -241,7 +244,6 @@ void
main(argc, argv)
char **argv;
{
struct passwd *me;
char *template = "page.theme";
FILE *tmplfile;
int opt;