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 672622 - support for saving uncompressed xml
support for saving uncompressed xml
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export other
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Morten Welinder
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2012-03-22 13:20 UTC by Allison Karlitskaya (desrt)
Modified: 2012-08-04 06:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Allison Karlitskaya (desrt) 2012-03-22 13:20:29 UTC
I've recently been using gnumeric to get on top of my finances.  Now I want to start checking the files into version control.

Plain text would clearly be best for this.

I noticed that the .gnumeric file format is just gzipped XML.  I also noticed that if presented with the XML content in uncompressed form, gnumeric will open it without problems.

There is no support for saving it back again, uncompressed.  Even simply opening an uncompressed .gnumeric file, making a trivial change and pressing ctrl+s will result in a compressed file being written.

It would be nice if gnumeric supported writing uncompressed XML, possibly with a different file extension (.gnumeric.xml)?
Comment 1 Andreas J. Guelzow 2012-03-22 15:28:45 UTC
Select Edit->Preferences and go to the Files tab. There you can choose the compression level to be used for .gnumeric files. If you select a compression level of 0 you will get uncompressed XML.
Comment 2 Morten Welinder 2012-03-22 15:30:11 UTC
Edit->Preferences->Files->Default Compression Level 0

That said, we should probably never compress when saving to .xml.
Comment 3 Allison Karlitskaya (desrt) 2012-03-22 17:27:59 UTC
Ya -- the issue is not that I don't ever want compressed files.  I just want *some* files uncompressed.
Comment 4 Morten Welinder 2012-03-23 15:27:04 UTC
Ryan, we already now (try to?) turn of compression if you use a name
like foo.xml.

Does that not work for you?
Comment 5 Allison Karlitskaya (desrt) 2012-03-23 15:43:58 UTC
I didn't know about this -- and it works perfectly well.

The only (small) snag is that when you type "foo.xml" into the save dialog you get a warning "the file type does not match the extension.  continue?".  If you say yes, then everything works perfectly.

So I guess the only thing that I could recommend at this point is

 1) Add "Uncompressed gnumeric (*.xml)" to the list of formats in the dropdown

 2) Drop the warning if it's selected
Comment 6 Andreas J. Guelzow 2012-08-04 06:40:30 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.