Skip to content

Fix duplicate *b* bookmark-source links on verses - #1380

Merged
karlkleinpaste merged 1 commit into
crosswire:masterfrom
LAfricain:fix-doublelinkbookmarks
Aug 16, 2026
Merged

Fix duplicate *b* bookmark-source links on verses#1380
karlkleinpaste merged 1 commit into
crosswire:masterfrom
LAfricain:fix-doublelinkbookmarks

Conversation

@LAfricain

Copy link
Copy Markdown
Contributor

Fix duplicate b bookmark-source links on verses after a range's start build_tag_color_map() carried a manual hyphenated-range expansion (searching the raw bookmark key text for ":-") that predated the fix to BackEnd::parse_verse_list() itself. Now that parse_verse_list() properly expands a range like "1Tim 2:9-12" into ne list element per verse, this leftover manual expansion ran a second time for every verse after the range's start, appending a second, duplicate bookmark-source entry into the (now append-based, not first-wins) tag_color_map for those verses -- producing two b links instead of one on verses 10-12 while verse 9 correctly showed only one.

Remove the now-redundant manual expansion; parse_verse_list() alone is sufficient.

build_tag_color_map() carried a manual hyphenated-range expansion
(searching the raw bookmark key text for ":<verse>-<digits>") that
predated the fix to BackEnd::parse_verse_list() itself. Now that
parse_verse_list() properly expands a range like "1Tim 2:9-12" into
ne list element per verse, this leftover manual expansion ran a
second time for every verse after the range's start, appending a
second, duplicate bookmark-source entry into the (now append-based,
not first-wins) tag_color_map for those verses -- producing two *b*
links instead of one on verses 10-12 while verse 9 correctly showed
only one.

Remove the now-redundant manual expansion; parse_verse_list() alone
is sufficient.
@karlkleinpaste
karlkleinpaste merged commit 14657b5 into crosswire:master Aug 16, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants