Repository navigation
Commit a910bfe
Keep the first line of a .lrc file saved with a byte order mark (#1034)
A local file's .lrc lyrics saved as UTF-8 with a byte order mark lost
their first line. String::from_utf8_lossy keeps the mark as U+FEFF,
which is not whitespace, so parse_lrc's trim_start left it in front of
the first stamp: that line no longer started with "[" and was skipped.
A file whose only line was timed showed its stamp as plain words
instead. The sidecar's text now drops the mark before it is parsed, as
the skin and settings readers already do.1 parent 466bdf5 commit a910bfe
1 file changed
Lines changed: 30 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
106 | 111 | | |
107 | 112 | | |
108 | 113 | | |
| |||
261 | 266 | | |
262 | 267 | | |
263 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
264 | 289 | | |
0 commit comments