Opened 13 years ago
Closed 12 years ago
#2127 closed defect (fixed)
Write changes file types
Reported by: | walter | Owned by: | godiard |
---|---|---|---|
Priority: | Unspecified by Maintainer | Milestone: | Unspecified |
Component: | Write | Version: | Unspecified |
Severity: | Unspecified | Keywords: | r? |
Cc: | Distribution/OS: | Unspecified | |
Bug Status: | Unconfirmed |
Description
Write seems to change file types by default from the type opened. For example:
- Open a .csv file in Write
- Exit Write (without making any changes)
- Observe that the file is no longer .csv
(I encounter this problem in Measure: I capture data into a .csv file. But if I open that file in Write, it is no longer .csv.)
Attachments (2)
Change History (7)
Changed 13 years ago by godiard
comment:1 Changed 13 years ago by erikos
- Owner set to godiard
- Status changed from new to assigned
comment:2 Changed 13 years ago by walter
Now that we have a Edit activity, which is plain text, we can do an end-run around this problem. Maybe make Edit handle all the plain-text situations and let people use the clipboard if they really want plain text in Write???
Changed 13 years ago by godiard
comment:3 Changed 13 years ago by godiard
- Keywords r? added
I added a new patch to try to solve the same problem.
comment:4 Changed 12 years ago by RafaelOrtiz
This is already on mainline by
http://git.sugarlabs.org/write/mainline/commit/47b9134f75dd6e567f5670d0038420926d043342
should be closed.
comment:5 Changed 12 years ago by godiard
- Resolution set to fixed
- Status changed from assigned to closed
Note: See
TracTickets for help on using
tickets.
Thanks Gonzalo for the patch. So, this is a tricky issue actually. Do we treat Write as a viewer for files like *.patch, *.c, *.html? Or in which cases do we have to change the format because after someone has edited in Write it becomes another format? In my opinion it should stay the original format unless after editing it can not be anymore.
Example: With your code a c-file with the mimetype: text/x-csrc is changed to 'application/vnd.oasis.opendocument.text'.