summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhlabs <rhlabs>1998-02-23 21:21:19 +0000
committerrhlabs <rhlabs>1998-02-23 21:21:19 +0000
commit59dc3774bfbd626f74e50f6a591534b53e409cd3 (patch)
tree865506bee12108ee86c1ba8a711ee6997a00ef77
parent98d20420baa8233fb86bdb8d7d787bf55ee5fc5e (diff)
downloadyelp-59dc3774bfbd626f74e50f6a591534b53e409cd3.tar.gz
Cleaned up converted HTML output
Dr Mike <msf@redhat.com>
-rw-r--r--src/info2html/html.c9
-rw-r--r--src/info2html/main.c6
2 files changed, 14 insertions, 1 deletions
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,"<!DOCTYPE HTML PUBLIC \"-//W3C/DTD HTML 3.2//EN\">\n");
@@ -162,6 +163,7 @@ void write_html_header( FILE *f, char *filename, char *nodename)
fprintf(f,"</HEAD>\n");
fprintf(f,"<!-- conversion of file \"%s\", node \"%s\" -->\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,"</BODY>\n</HTML>\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, "<BODY><HTML>\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, "</BODY></HTML>\n");
return 0;
}