fbuf: New data structure for buffered file I/O.
[pspp] / src / output / html.c
index fd6d40d106f32d4f460fd4ca13db8b8e7f921e02..618db2795c203eabe22c15f5b5faef99852ceace 100644 (file)
@@ -51,7 +51,7 @@ struct html_driver
 #ifdef HAVE_CAIRO
     struct xr_color fg;
     struct xr_color bg;
-#endif    
+#endif
     struct file_handle *handle;
     char *chart_file_name;
 
@@ -109,7 +109,7 @@ html_create (struct file_handle *fh, enum settings_output_devices device_type,
   parse_color (d, o, "background-color", "#FFFFFFFFFFFF", &html->bg);
   parse_color (d, o, "foreground-color", "#000000000000", &html->fg);
 #endif
-  html->file = fn_open (html->handle, "w");
+  html->file = fn_fopen (html->handle, "w");
   if (html->file == NULL)
     {
       msg_error (errno, _("error opening output file `%s'"), fh_get_file_name (html->handle));
@@ -495,7 +495,7 @@ html_output_table (struct html_driver *html, const struct table_item *item)
            {
              /* Cell borders. */
              n_borders = 0;
-          
+
              top = table_get_rule (t, TABLE_VERT, x, y);
              if (top > TAL_GAP)
                put_border (html->file, n_borders++, top, "top");