https://bugs.documentfoundation.org/show_bug.cgi?id=172596
Bug ID: 172596
Summary: Alphabetical index marks lost on reference-ref
elements; duplicate index marks created on source text
Product: LibreOffice
Version: 26.2.4.2 release
Hardware: ARM
OS: macOS (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Description:
Two related issues affect the alphabetical index when using cross-references
(Insert > Cross-reference > Set Reference / Insert Reference) in combination
with index entries. Together they result in incorrect index output: missing
page entries for referenced locations, and spurious/duplicate entries at the
source location.
Steps to Reproduce:
1.Type a word (e.g. "Test"), mark it as an alphabetical index entry (Insert >
Table of Contents and Index > Index Entry), and simultaneously set it as a
named reference mark (Insert > Cross-reference > Set Reference).
2.Place the cursor elsewhere in the document (e.g. a second page) and insert a
cross-reference to that reference mark (Insert > Cross-reference > Insert
Reference, format: "Reference text").
3.Insert an alphabetical index (Insert > Table of Contents and Index > Table of
Contents, Index or Bibliography, type: Alphabetical Index).
Actual Results:
Sometimes it works.
Other times, the cross-reference location is not registered in the index at
all. Only the source location appears. This is because the inserted
<text:reference-ref> element is not wrapped in
<text:alphabetical-index-mark-start/end> tags. Without those tags, LibreOffice
does not treat the reference location as an indexable occurrence, so it
produces no index entry for that page. Additionally, at the source location,
two nested <text:alphabetical-index-mark-start/end> pairs are written into the
XML instead of one. The outer mark is bare; the inner mark carries a text:key1
attribute containing an unintended string (observed as "Tests" when the source
word is "Test"). This results in a spurious second index entry ("Tests")
appearing in the index with no page number, in addition to the correct "Test"
entry.
Expected Results:
The index contains one entry for "Test" with two page numbers: one for the
source location and one for the location where the cross-reference was
inserted.
Reproducible: Sometimes
User Profile Reset: No
Additional Info:
Version: 26.2.4.2 (AARCH64)
Build ID: 0229ac93fcf0d7cbc6376066c6f35021cef002dc
CPU threads: 8; OS: macOS 26.3; UI render: Skia/Metal; VCL: osx
Locale: en-GB (en_IT.UTF-8); UI: en-US
Calc: threaded
--
You are receiving this mail because:
You are the assignee for the bug.