From c90c6ce4676b48befe4ed78761c6b21f0ba2b0a3 Mon Sep 17 00:00:00 2001 From: rhlabs Date: Tue, 17 Mar 1998 21:04:20 +0000 Subject: Fixed HTML table generation code a little in info->html conversion, otherwise table got smaller by 95% per line, not good. Dr Mike --- components/help/converters/gnome-info2html2/html.c | 26 ++++++++++++---------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/components/help/converters/gnome-info2html2/html.c b/components/help/converters/gnome-info2html2/html.c index af06a5ff2..a6f8c007e 100644 --- a/components/help/converters/gnome-info2html2/html.c +++ b/components/help/converters/gnome-info2html2/html.c @@ -170,17 +170,18 @@ void make_nav_links( FILE *f, NODE *node ) write_node_link_html( f, node->filename, "Up:", node->up ); fprintf(f,"\n"); #else - fprintf(f,""); - fprintf(f,""); - fprintf(f,"\n"); + fprintf(f,"\n
"); + fprintf(f,"\n"); + fprintf(f,"\n"); + fprintf(f,"\t"); - fprintf(f,"\n"); + fprintf(f,"\t\n"); + fprintf(f,"\t"); - fprintf(f,"
\n\t"); write_node_link_html( f, node->filename, "Next:", node->next ); - fprintf(f,""); + fprintf(f,"\t\n\t"); write_node_link_html( f, node->filename, "Prev:", node->prev ); - fprintf(f,""); + fprintf(f,"\t\n\t"); write_node_link_html( f, node->filename, "Up:", node->up ); - fprintf(f,"
"); + fprintf(f,"\t
\n"); #endif } @@ -304,7 +305,7 @@ void dump_html_for_node( NODE *node ) /* make an anchor */ escaped_nodename = escape_html_chars( node->nodename ); map_spaces_to_underscores( escaped_nodename ); - fprintf(f, "\n",escaped_nodename); + fprintf(f, "\n",escaped_nodename); g_free(escaped_nodename); /* links to other immediate nodes */ @@ -750,7 +751,7 @@ void open_menu_html( FILE *f, char *p ) if (inTable) fprintf(stderr, "In a table and starting new one!\n"); inTable = 1; - fprintf(f, "\n"); + fprintf(f, "
 
\n"); #endif } @@ -846,13 +847,14 @@ void write_menu_entry_html( FILE *f, char *p, char *nodefile, char **menu_end ) else fwrite(end+1, 1, *menu_end - end - 1, f); #else - fprintf(f,"\n\t\n" + "\t\n"); + fprintf(f,"\n\t\n\n"); #endif if (href) -- cgit v1.2.1
 
%s", + fprintf(f,"
\n\t\t%s\n\t\n\t\t", href, escaped_refname ); if (*end == '.' && *(end+1) == '\n') fprintf(f,"%s.\n",escaped_refnode); else fwrite(end+1, 1, *menu_end - end - 1, f); - fprintf(f,"