Fix lots of titles (only 15 errors left).
[pspp] / dump.c
diff --git a/dump.c b/dump.c
index 3047e3d8ad0835485133dff9d8b4bebba9843cc1..9e1ff64e6223c90d0d8f32040fe2535876887069 100644 (file)
--- a/dump.c
+++ b/dump.c
@@ -1071,7 +1071,20 @@ dump_title_value(int level)
     }
   else if (match_byte (5))
     {
-      match_byte_assert (0x58);
+      if (match_byte (0x31))
+        {
+          if (match_u32 (1))
+            {
+              printf("(footnote %d) ", get_u32());
+              match_byte_assert (0);
+              match_byte_assert (0);
+              int subn = get_u32 ();
+              printf ("nested %d bytes", subn);
+              pos += subn;
+            }
+        }
+      else
+        match_byte_assert (0x58);
       printf ("variable \"%s\"", get_string());
       get_string();
       if (!match_byte(1) && !match_byte(2))