mirror of
https://github.com/koreader/koreader.git
synced 2026-12-02 02:03:00 +00:00
A self-closing content tag (`<content type="text"/>`) has no `">` of its own, so the lazy `.-` in the `<content type=".-">` rewrite runs forward to the next entry's content tag and collapses everything in between -- links included -- into a single `<content>`. luxl then parses a mangled tree: entries are dropped and covers get paired with the wrong titles. Normalize self-closing content tags to an empty `<content />` element before that rewrite. Adds a regression test with a self-closing content tag between two entries. Fixes #15511