fix: recognise Final Draft files by their content
load() chose the parser from the extension alone, so a .txt that is really FDX was parsed as Fountain. The .fdx extension still wins, and other names are sniffed for the FinalDraft root element.
This commit is contained in:
1 parent
6622203506
commit
764c9d4dc3
2 files changed
+13
-1
No files matched your search
@@ -17,6 +17,8 @@ version is in the `VERSION` file.
|
||||
|
||||
- `plotzilla new-script.fountain` opens a new script that will be saved to that file,
|
||||
instead of an untitled document that forgot the name it was given.
|
||||
- A Final Draft file named `.txt` (or anything but `.fdx`) is recognised by its
|
||||
content and opened as FDX, not parsed as Fountain.
|
||||
- The unsaved-changes marker is now updated atomically: an edit landing while a save
|
||||
finished could make the close confirmation unreliable.
|
||||
- Saving is now durable: the file is synced to disk before it replaces the old one (a
|
||||
|
||||
Reference in new issue
Block a user