Ticket #2127 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

Write changes file types

Reported by: walter Owned by: godiard
Priority: Unspecified by Maintainer Milestone: Unspecified by Release Team
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:

1. Open a .csv file in Write
2. Exit Write (without making any changes)
3. 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

Change History

Changed 3 years ago by erikos

  • owner set to godiard
  • status changed from new to assigned

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'.

Changed 3 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 3 years ago by godiard

  • keywords r? added

I added a new patch to try to solve the same problem.

Changed 2 years ago by RafaelOrtiz

Changed 2 years ago by godiard

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.