From 59dc3774bfbd626f74e50f6a591534b53e409cd3 Mon Sep 17 00:00:00 2001 From: rhlabs Date: Mon, 23 Feb 1998 21:21:19 +0000 Subject: Cleaned up converted HTML output Dr Mike --- src/info2html/html.c | 9 +++++++++ src/info2html/main.c | 6 +++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/info2html/html.c b/src/info2html/html.c index 6e12b8ff..c97c0cfe 100644 --- a/src/info2html/html.c +++ b/src/info2html/html.c @@ -152,6 +152,7 @@ void write_node_link_html( FILE *f, char *nodefile, char *refname, char *ref ) } /* write out top of a new html file */ +#if 0 void write_html_header( FILE *f, char *filename, char *nodename) { fprintf(f,"\n"); @@ -162,6 +163,7 @@ void write_html_header( FILE *f, char *filename, char *nodename) fprintf(f,"\n"); fprintf(f,"\n",work_filename, work_node); } +#endif /* start of everything after html header */ void start_html_content( FILE *f ) @@ -273,6 +275,7 @@ void dump_html_for_node( NODE *node ) } #endif + /* hack - just dump to stdout for now */ f = stdout; /* see if this is THE dir node */ @@ -284,11 +287,15 @@ void dump_html_for_node( NODE *node ) make_Top_link( destdir, destfile ); #endif +#if 0 /* do the html header first */ write_html_header( f, node->filename, node->nodename ); +#endif +#if 0 /* now for the body */ start_html_content( f ); +#endif /* make an anchor */ escaped_nodename = escape_html_chars( node->nodename ); @@ -549,7 +556,9 @@ void dump_html_for_node( NODE *node ) else if (body_open) close_body_text_html( f ); +#if 0 fprintf(f,"\n\n"); +#endif /* clean up */ #if 0 diff --git a/src/info2html/main.c b/src/info2html/main.c index 8b9c9b90..398ae2af 100644 --- a/src/info2html/main.c +++ b/src/info2html/main.c @@ -57,6 +57,9 @@ if (!be_quiet) } + /* hack, just send to stdout for now */ + fprintf(stdout, "\n"); + /* big loop to identify sections of info files */ /* NEW PLAN - format on the fly */ /* No need to store all nodes, etc since we let web server */ @@ -92,7 +95,7 @@ if (!be_quiet) /* now lets make some html */ /* first make sure the subdir for this info file exists */ dump_html_for_node( node ); - /* free_node(node); */ + if (node) { if ( node->contents ) @@ -104,5 +107,6 @@ if (!be_quiet) else continue; } + fprintf(stdout, "\n"); return 0; } -- cgit v1.2.1