From: John Darrington Date: Sun, 14 Dec 2014 00:51:44 +0000 (+0100) Subject: File Export: Added a "plain text" option. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=5ce6b1f0994ebe14da237b2b76d6ba27d92bbe7c File Export: Added a "plain text" option. In the File|Export menu of the output window, enabled unicode box characters for the "Text" output, and added a "Text (plain)" menuitem without this feature. --- diff --git a/src/ui/gui/psppire-output-window.c b/src/ui/gui/psppire-output-window.c index 3c889808a3..695aa77eec 100644 --- a/src/ui/gui/psppire-output-window.c +++ b/src/ui/gui/psppire-output-window.c @@ -233,6 +233,7 @@ enum FT_HTML, FT_ODT, FT_TXT, + FT_ASCII, FT_PS, FT_CSV, n_FT @@ -246,6 +247,7 @@ struct file_types ft[n_FT] = { {N_("HTML (*.html)"), ".html"}, {N_("OpenDocument (*.odt)"), ".odt"}, {N_("Text (*.txt)"), ".txt"}, + {N_("Text [plain] (*.txt)"), ".txt"}, {N_("PostScript (*.ps)"), ".ps"}, {N_("Comma-Separated Values (*.csv)"), ".csv"} }; @@ -444,6 +446,10 @@ psppire_output_window_export (PsppireOutputWindow *window) break; case FT_TXT: + string_map_insert (&options, "box", "unicode"); + /* Fall through */ + + case FT_ASCII: string_map_insert (&options, "headers", "false"); string_map_insert (&options, "paginate", "false"); string_map_insert (&options, "squeeze", "true");