ascii: Remove unimplemented "tab-width" setting.
[pspp-builds.git] / src / output / ascii.c
index 85c31c183f49e674c5a1ea28b6249928b27f1f44..ffe8515f8b51a7bc3147431e9b68ad30b44aa8b8 100644 (file)
@@ -98,7 +98,6 @@ struct ascii_driver
     bool paginate;             /* Insert formfeeds? */
     bool squeeze_blank_lines;   /* Squeeze multiple blank lines into one? */
     enum emphasis_style emphasis; /* How to emphasize text. */
-    int tab_width;             /* Width of a tab; 0 not to use tabs. */
     char *chart_file_name;      /* Name of files used for charts. */
 
     int width;                  /* Page width. */
@@ -179,7 +178,6 @@ ascii_create (const char *name, enum output_device_type device_type,
                             "underline", EMPH_UNDERLINE,
                             "none", EMPH_NONE,
                             (char *) NULL);
-  a->tab_width = parse_int (opt (d, o, "tab-width", "0"), 8, INT_MAX);
 
   if (parse_enum (opt (d, o, "chart-type", "png"),
                   "png", true,
@@ -523,7 +521,8 @@ ascii_submit (struct output_driver *driver,
           {
             struct table_item *item;
 
-            item = table_item_create (table_from_string (0, text), NULL);
+            item = table_item_create (table_from_string (TAB_LEFT, text),
+                                      NULL);
             ascii_submit (&a->driver, &item->output_item);
             table_item_unref (item);
           }