Commit: bc9f6ddfbfcfcab7286020a83634048a4ccc0c55
Parent: 97d8c8ef756584383dca422ab0972d2858b0c451
Author: Ren Tatsumoto
Date: Sat, 12 Dec 2020 17:07:53 +0300
anki stores alt before src
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/subs2srs.lua b/subs2srs.lua
@@ -333,7 +333,7 @@ end
local function construct_note_fields(sub_text, snapshot_filename, audio_filename)
return {
[config.sentence_field] = sub_text,
- [config.image_field] = string.format('<img src="%s" alt="snapshot">', snapshot_filename),
+ [config.image_field] = string.format('<img alt="snapshot" src="%s">', snapshot_filename),
[config.audio_field] = string.format('[sound:%s]', audio_filename),
}
end