After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 645287 - ssconvert -S should offer template or at least mention what to expect
ssconvert -S should offer template or at least mention what to expect
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: General
1.10.x
Other All
: Normal enhancement
: ---
Assigned To: Jody Goldberg
Jody Goldberg
: 645520 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-03-20 06:54 UTC by Dan Jacobson
Modified: 2011-03-22 19:51 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dan Jacobson 2011-03-20 06:54:28 UTC
$ man ssconvert

       -S, --export-file-per-sheet
              Export a file for each sheet if the exporter only  supports  one
              sheet at a time.

OK, but mention what the filenames will look like.

We find they look like
$ ls
renyou.csv.0
renyou.csv.1
renyou.csv.10
renyou.csv.11
renyou.csv.2
renyou.csv.3
renyou.csv.4
renyou.csv.5
renyou.csv.6
renyou.csv.7
renyou.csv.8
renyou.csv.9

Which is wrong. They should look like

$ ls
renyou.csv.00
renyou.csv.01
renyou.csv.02
renyou.csv.03
renyou.csv.04
renyou.csv.05
renyou.csv.06
renyou.csv.07
renyou.csv.08
renyou.csv.09
renyou.csv.10
renyou.csv.11

In fact that is wrong too. They should look like
renyou.00.csv
renyou.01.csv
renyou.02.csv
renyou.03.csv
renyou.04.csv
renyou.05.csv
renyou.06.csv
renyou.07.csv
renyou.08.csv
renyou.09.csv
renyou.10.csv
renyou.11.csv

Why don't you offer a template, like
$ man gs

       You might want to print each page separately.  To  do  this,  send  the
       output to a series of files "foo1.xyz, foo2.xyz, ..." using the "-sOut-
       putFile=" switch with "%d" in a filename template:

            -sOutputFile=foo%d.xyz

       Each resulting file receives one page of output, and the files are num-
       bered in sequence.  "%d" is a printf format specification; you can also
       use a variant like "%02d".
Comment 1 Morten Welinder 2011-03-22 13:44:29 UTC
*** Bug 645520 has been marked as a duplicate of this bug. ***
Comment 2 Morten Welinder 2011-03-22 13:45:32 UTC
Bug 645520 is a request that such a template can reference the sheet name.
Maybe "foo-%s.csv"
Comment 3 Morten Welinder 2011-03-22 19:51:18 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.