Mercurial > hg > octave-nkf
diff scripts/plot/__print_parse_opts__.m @ 11587:c792872f8942
all script files: untabify and strip trailing whitespace
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:35:29 -0500 |
parents | 8ac9687dbe9f |
children | b0084095098e |
line wrap: on
line diff
--- a/scripts/plot/__print_parse_opts__.m +++ b/scripts/plot/__print_parse_opts__.m @@ -70,7 +70,7 @@ arg_st.lpr_options = ""; endif arg_st.unlink = {}; - + if (nargin > 0 && isfigure (varargin{1})) arg_st.figure = varargin{1}; varargin(1) = []; @@ -254,7 +254,7 @@ "ps", "ps2", "psc", "psc2", "pdf"}))) have_ghostscript = ! isempty (__ghostscript_binary__ ()); if (have_ghostscript) - file_exists = ((numel (dir (arg_st.name)) == 1) + file_exists = ((numel (dir (arg_st.name)) == 1) && (! isdir (arg_st.name))); if (! file_exists) arg_st.append_to_file = false; @@ -593,7 +593,7 @@ ## Aliases for other devices: "bmp", "png", "tiff", "tiffn", "pdf", ## "ps", "ps2", "psc", "psc2" ## - ## eps, epsc, eps2, epsc2 are not included here because those are + ## eps, epsc, eps2, epsc2 are not included here because those are ## are generated by the graphics toolkit. aliases.bmp = "bmp32b"; aliases.pdf = "pdfwrite";