diff options
author | Philip Langdale <philipl@mail.utexas.edu> | 2001-09-22 03:14:53 +0000 |
---|---|---|
committer | Philip Langdale <philipl@src.gnome.org> | 2001-09-22 03:14:53 +0000 |
commit | f824419a730758557f7fa5687ecb48bfcee56cbe (patch) | |
tree | 5f62d26868427516c63ee7e34e501a2d9dfaa436 /src | |
parent | 14ec3cb6772a837cc3b1d0fd5b850d1f142f11f5 (diff) | |
download | yelp-f824419a730758557f7fa5687ecb48bfcee56cbe.tar.gz |
Reviewed by John Fleck <jfleck@inkstain.net> (Bug 60511)NAUTILUS_1_0_5nautilus-gnome-1
2001-09-21 Philip Langdale <philipl@mail.utexas.edu>
* Reviewed by John Fleck <jfleck@inkstain.net> (Bug 60511)
* components/help/converters/gnome-info2html2/html.c
* components/help/converters/gnome-info2html2/html.h
* components/help/converters/gnome-info2html2/main.c: Added optional
"galeon mode" invoked with -g command line param. This involves writing
fully qualified info: hrefs instead of just the #nodename target,
which appears to me to be a bug, but might have negative effects on
nautilus. It also uses ? queries instead of # refs when forming hrefs.
Diffstat (limited to 'src')
-rw-r--r-- | src/info2html/html.c | 7 | ||||
-rw-r--r-- | src/info2html/html.h | 2 | ||||
-rw-r--r-- | src/info2html/main.c | 1 |
3 files changed, 9 insertions, 1 deletions
diff --git a/src/info2html/html.c b/src/info2html/html.c index 53378eeb..7044f95d 100644 --- a/src/info2html/html.c +++ b/src/info2html/html.c @@ -25,6 +25,8 @@ int inTable=0; char *BaseFilename=NULL; char *OverrideBaseFilename=NULL; +int galeon_mode=0; + /* prototypes */ char *form_info_tag_href( char *nodefile, char *nodename ); int make_Top_link( char *destdir, char *destfile ); @@ -53,7 +55,10 @@ char *form_info_tag_href( char *nodefile, char *nodename ) else filename = nodefile; - g_snprintf (tmp, sizeof (tmp), "HREF=\"#%s\"", escaped_nodename); + if (galeon_mode) + g_snprintf (tmp, sizeof (tmp), "HREF=\"info:%s?%s\"", filename, escaped_nodename); + else + g_snprintf (tmp, sizeof (tmp), "HREF=\"#%s\"", escaped_nodename); if (escaped_nodename) g_free(escaped_nodename); diff --git a/src/info2html/html.h b/src/info2html/html.h index 3237b474..0c73bad4 100644 --- a/src/info2html/html.h +++ b/src/info2html/html.h @@ -9,6 +9,8 @@ extern char *BaseFilename; extern char *OverrideBaseFilename; +extern int galeon_mode; + void dump_html_for_node( NODE *node ); void open_body_text_html( FILE *f ); diff --git a/src/info2html/main.c b/src/info2html/main.c index 5ccc70b8..3e3d6e67 100644 --- a/src/info2html/main.c +++ b/src/info2html/main.c @@ -29,6 +29,7 @@ static char *requested_nodename=NULL; static struct poptOption options[] = { {NULL, 'a', POPT_ARG_STRING, &requested_nodename}, {NULL, 'b', POPT_ARG_STRING, &OverrideBaseFilename}, + {NULL, 'g', POPT_ARG_NONE, &galeon_mode}, {NULL} }; |