From 046a6dc8493e42e9e9c7f0fec5a454730f6f689b Mon Sep 17 00:00:00 2001
From: Simon Tatham
Date: Thu, 15 Apr 2004 18:25:17 +0000
Subject: Standardise on using double quotes in HTML attributes. It turns out
that the GNOME help browser is perfectly happy with Halibut's HTML _except_
that it doesn't approve of single quotes in places such as .
[originally from svn r4082]
---
bk_xhtml.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/bk_xhtml.c b/bk_xhtml.c
index 439f9f9..aff20a3 100644
--- a/bk_xhtml.c
+++ b/bk_xhtml.c
@@ -844,13 +844,13 @@ static void xhtml_donavlinks(FILE *fp, xhtmlfile *file)
if (xhtml_last_file==NULL) {
fprintf(fp, "Previous | ");
} else {
- fprintf(fp, "Previous | ", xhtml_last_file->filename);
+ fprintf(fp, "Previous | ", xhtml_last_file->filename);
}
- fprintf(fp, "Contents | ", conf.contents_filename);
+ fprintf(fp, "Contents | ", conf.contents_filename);
if (file == NULL) {
fprintf(fp, "Index | ");
} else {
- fprintf(fp, "Index | ", conf.index_filename);
+ fprintf(fp, "Index | ", conf.index_filename);
}
if (file != NULL) { /* otherwise we're doing nav links for the index */
if (xhtml_next_file==NULL)
@@ -864,10 +864,10 @@ static void xhtml_donavlinks(FILE *fp, xhtmlfile *file)
if (file==NULL) { /* index, so no next file */
fprintf(fp, "Next ");
} else {
- fprintf(fp, "Next", conf.index_filename);
+ fprintf(fp, "Next", conf.index_filename);
}
} else {
- fprintf(fp, "Next", xhtml_next_file->filename);
+ fprintf(fp, "Next", xhtml_next_file->filename);
}
fprintf(fp, "
\n");
}
@@ -896,7 +896,7 @@ static void xhtml_do_index_body(FILE *fp)
for (i=0; insection; i++) {
xhtmlsection *sect = xi->sections[i];
if (sect) {
- fprintf(fp, "", sect->file->filename, sect->fragment);
+ fprintf(fp, "", sect->file->filename, sect->fragment);
if (sect->para->kwtext) {
xhtml_para(fp, sect->para->kwtext, FALSE);
} else if (sect->para->words) {
@@ -1367,7 +1367,7 @@ static void xhtml_doheader(FILE *fp, word *title)
{
fprintf(fp, "\n");
- fprintf(fp, "\n\n\n");
+ fprintf(fp, "\n\n\n");
if (title==NULL)
fprintf(fp, "The thing with no name!");
else
--
cgit v1.1