changeset 12454:0cdabdee8f25 octave-forge

Add period to file extensions in switch statement
author prnienhuis
date Mon, 28 Apr 2014 21:20:29 +0000
parents cbbc378ee114
children e0d1e0b22540
files main/io/inst/odsfinfo.m
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/main/io/inst/odsfinfo.m	Sat Apr 26 12:58:05 2014 +0000
+++ b/main/io/inst/odsfinfo.m	Mon Apr 28 21:20:29 2014 +0000
@@ -82,6 +82,8 @@
 ## 2013-09-09 Native Octave interface ("OCT") for reading
 ## 2013-09-23 Header updated to OCT interface
 ## 2013-12-01 Output arg #2 adapted to file type tru switch stmt
+## 2014-04-27 Fix switch (period before extension)
+##     ''     Style fixes
 
 function [ filetype, sh_names ] = odsfinfo (filename, reqintf=[])
 
@@ -98,7 +100,7 @@
   ## spreadsheet. Find out what format
   [~, ~, ext] = fileparts (ods.filename); 
   switch ext
-    case {"ods", "sxc"}
+    case {".ods", "ods", ".sxc", "sxc"}
       filetype = "OpenOffice.org Calc Document";
     case "gnumeric"
       filetype = "Gnumeric spreadsheet";