X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fhtml.c;h=4fd23184ec37e21def2d34c793a9aa21655c37fe;hb=805e7e4f88947b7c39ca2890927a50ef5391d956;hp=a3e14ba1f1ef27240b514cbe3c9985a6d00b350f;hpb=f51ecb48027e6b1eb46840ae25888a25b429f012;p=pspp diff --git a/src/output/html.c b/src/output/html.c index a3e14ba1f1..4fd23184ec 100644 --- a/src/output/html.c +++ b/src/output/html.c @@ -23,19 +23,21 @@ #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "data/file-name.h" +#include "libpspp/assertion.h" +#include "libpspp/cast.h" +#include "libpspp/compiler.h" +#include "libpspp/message.h" +#include "libpspp/version.h" +#include "output/cairo.h" +#include "output/chart-item.h" +#include "output/driver-provider.h" +#include "output/message-item.h" +#include "output/options.h" +#include "output/output-item-provider.h" +#include "output/table-provider.h" +#include "output/table-item.h" +#include "output/text-item.h" #include "error.h" #include "xalloc.h" @@ -50,6 +52,7 @@ struct html_driver char *file_name; char *chart_file_name; + char *command_name; FILE *file; size_t chart_cnt; @@ -100,7 +103,7 @@ html_create (const char *file_name, enum settings_output_devices device_type, html->file = fn_open (html->file_name, "w"); if (html->file == NULL) { - error (0, errno, _("opening HTML output file: %s"), html->file_name); + error (0, errno, _("error opening output file \"%s\""), html->file_name); goto error; } @@ -113,7 +116,7 @@ html_create (const char *file_name, enum settings_output_devices device_type, fputs ("\n", html->file); fputs ("\n", html->file); + "CONTENT=\"text/html; charset=utf-8\">\n", html->file); fputs ("