* src/exporthtml.c
Fix HTML export to make it more compliant
Patch by Frank Dietrich <bits_n_bytes@gmx.de>
+2007-10-07 [colin] 3.0.2cvs28
+
+ * src/exporthtml.c
+ Fix HTML export to make it more compliant
+ Patch by Frank Dietrich <bits_n_bytes@gmx.de>
+
2007-10-07 [colin] 3.0.2cvs27
* src/prefs_toolbar.c
2007-10-07 [colin] 3.0.2cvs27
* src/prefs_toolbar.c
( cvs diff -u -r 1.43.2.87 -r 1.43.2.88 src/toolbar.c; ) > 3.0.2cvs25.patchset
( cvs diff -u -r 1.30.2.40 -r 1.30.2.41 src/prefs_toolbar.c; ) > 3.0.2cvs26.patchset
( cvs diff -u -r 1.30.2.41 -r 1.30.2.42 src/prefs_toolbar.c; ) > 3.0.2cvs27.patchset
( cvs diff -u -r 1.43.2.87 -r 1.43.2.88 src/toolbar.c; ) > 3.0.2cvs25.patchset
( cvs diff -u -r 1.30.2.40 -r 1.30.2.41 src/prefs_toolbar.c; ) > 3.0.2cvs26.patchset
( cvs diff -u -r 1.30.2.41 -r 1.30.2.42 src/prefs_toolbar.c; ) > 3.0.2cvs27.patchset
+( cvs diff -u -r 1.5.2.24 -r 1.5.2.25 src/exporthtml.c; ) > 3.0.2cvs28.patchset
MICRO_VERSION=2
INTERFACE_AGE=0
BINARY_AGE=0
MICRO_VERSION=2
INTERFACE_AGE=0
BINARY_AGE=0
EXTRA_RELEASE=
EXTRA_GTK2_VERSION=
EXTRA_RELEASE=
EXTRA_GTK2_VERSION=
#define BORDER_SIZE 2
#define CELL_PADDING 2
#define CELL_SPACING 2
#define BORDER_SIZE 2
#define CELL_PADDING 2
#define CELL_SPACING 2
-#define CHAR_ENCODING "ISO-8859-1"
+#define CHAR_ENCODING "UTF-8"
/* Stylesheet names */
#define FILENAME_NONE ""
/* Stylesheet names */
#define FILENAME_NONE ""
ctl->path = NULL;
ctl->dirOutput = NULL;
ctl->fileHtml = NULL;
ctl->path = NULL;
ctl->dirOutput = NULL;
ctl->fileHtml = NULL;
+ ctl->encoding = g_strconcat(CHAR_ENCODING, NULL);
ctl->stylesheet = EXPORT_HTML_ID_NONE;
ctl->nameFormat = EXPORT_HTML_FIRST_LAST;
ctl->banding = FALSE;
ctl->stylesheet = EXPORT_HTML_ID_NONE;
ctl->nameFormat = EXPORT_HTML_FIRST_LAST;
ctl->banding = FALSE;
entry = exporthtml_find_stylesheet( ctl );
fprintf( stream,
entry = exporthtml_find_stylesheet( ctl );
fprintf( stream,
- "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\">\n" );
+ "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n" );
+ fprintf( stream,
+ "\"http://www.w3.org/TR/html4/loose.dtd\">\n" );
fprintf( stream, "<html>\n" );
fprintf( stream, "<head>\n" );
fprintf( stream, "<html>\n" );
fprintf( stream, "<head>\n" );
fprintf( stream, "href=\"%s\" >\n", entry->fileName );
}
}
fprintf( stream, "href=\"%s\" >\n", entry->fileName );
}
}
- fprintf( stream, "<body>\n" );
fprintf( stream, "</head>\n" );
}
fprintf( stream, "</head>\n" );
}
#else
fprintf( htmlFile, "<p>%s</p>\n", ctime_r( &tt, buf ) );
#endif
#else
fprintf( htmlFile, "<p>%s</p>\n", ctime_r( &tt, buf ) );
#endif
- fprintf( htmlFile, "<hr width=\"100%%\"></hr>\n" );
+ fprintf( htmlFile, "<hr width=\"100%%\">\n" );
fprintf( htmlFile, "</body>\n" );
fprintf( htmlFile, "</html>\n" );
fprintf( htmlFile, "</body>\n" );
fprintf( htmlFile, "</html>\n" );