Replace '(GObjectClass*) class' with 'G_OBJECT_CLASS(class)'
[pspp] / tests / output / render-test.c
index 90b5867f873f263df2938a1deff03b6ca9cc976b..b9ddd3e7f9491976a85c4dcfbeb9d1c821ed4a02 100644 (file)
@@ -25,6 +25,7 @@
 #include "data/file-handle-def.h"
 #include "libpspp/assertion.h"
 #include "libpspp/compiler.h"
+#include "libpspp/i18n.h"
 #include "libpspp/string-map.h"
 #include "output/ascii.h"
 #include "output/driver.h"
@@ -76,6 +77,7 @@ main (int argc, char **argv)
   FILE *input;
 
   set_program_name (argv[0]);
+  i18n_init ();
   output_engine_push ();
   input_file_name = parse_options (argc, argv);
 
@@ -346,7 +348,7 @@ replace_newlines (char *p)
 {
   char *q;
 
-  for (q = p; *p != '\0'; )
+  for (q = p; *p != '\0';)
     if (*p == '\\' && p[1] == 'n')
       {
         *q++ = '\n';
@@ -475,7 +477,8 @@ read_table (FILE *stream)
               {
                 char marker[2] = { 'a' + n_footnotes, '\0' };
                 struct footnote *f = table_create_footnote (
-                  tab, n_footnotes, content, marker, NULL);
+                  tab, n_footnotes, content, marker,
+                  area_style_clone (tab->container, &left_style));
                 table_add_footnote (tab, c, r, f);
                 n_footnotes++;
               }