CTABLES: Allow CAPTIONS, CORNERS, TITLES in TITLES subcommand.
authorBen Pfaff <blp@cs.stanford.edu>
Wed, 7 Sep 2022 15:27:54 +0000 (08:27 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Fri, 9 Sep 2022 18:09:18 +0000 (11:09 -0700)
Matthias Faeth reported that SPSS accepts these spellings.

src/language/stats/ctables.c

index d746a3356f8ce50b851f7d98b1c25dda989b752b..d0c0a8482b6da23897dba1ae8925d152353d7a57 100644 (file)
@@ -6446,11 +6446,11 @@ cmd_ctables (struct lexer *lexer, struct dataset *ds)
               do
                 {
                   char **textp;
-                  if (lex_match_id (lexer, "CAPTION"))
+                  if (lex_match_id (lexer, "CAPTIONS"))
                     textp = &t->caption;
-                  else if (lex_match_id (lexer, "CORNER"))
+                  else if (lex_match_id (lexer, "CORNERS"))
                     textp = &t->corner;
-                  else if (lex_match_id (lexer, "TITLE"))
+                  else if (lex_match_id (lexer, "TITLES"))
                     textp = &t->title;
                   else
                     {