some footnotes work (76 errors).
[pspp] / dump.c
diff --git a/dump.c b/dump.c
index 96611d976e2da517fa48dbbbc3d2d46aa321dd9a..2ba8e8b3edebe60394a29b34ffc157a6b92c697b 100644 (file)
--- a/dump.c
+++ b/dump.c
@@ -1280,6 +1280,21 @@ dump_title(void)
     }
   else
     match_byte_assert(0x58);
+
+
+  int n_footnotes = get_u32();
+  fprintf(stderr, "%d footnotes\n", n_footnotes);
+  printf("------\n%d footnotes\n", n_footnotes);
+  if (n_footnotes < 10)
+    {
+      for (int i = 0; i < n_footnotes; i++)
+        {
+          printf("footnote %d:\n", i);
+          dump_value(0);
+          match_byte_assert(0x58);
+          printf("(%d)\n", get_u32());
+        }
+    }
 }
 
 int