Ticket #440 (closed defect: fixed)
Missing [Script Info] header breaks reading/writing headers
| Reported by: | nielsm | Owned by: | nielsm |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1.8 |
| Component: | Subtitle | Version: | 1.9 |
| Severity: | minor | Keywords: | confirmed |
| Cc: | Platform: | All | |
| Sub Component: |
Description
If the [Script Info] line is missing from a file, all properties that should be stored in that section are invisible to Aegisub, and no new can be written. For example, all the settings in the Properties dialog become useless.
While these files are technically malformed, they should still be handled in a sensible way. Probably also fixed when saved back to disk.
A fix might be, if no [Script Info] line has been found before the first non-comment non-blank line, insert one just before the first non-comment non-blank line and continue as usual.
While this still isn't VSFilter compatible (any kind of line can appear anywhere) it's still better.
Change History
Note: See
TracTickets for help on using
tickets.
